Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
netweng committed Aug 6, 2023
1 parent fc1ead2 commit f6559d9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NODE_OPTIONS=--max-old-space-size=8192
20 changes: 10 additions & 10 deletions cloudtower-api-doc/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
const webpack = require("webpack");

if(!process.env.TAURI_ENV) {
process.env = new Proxy(process.env, {
get(target, prop) {
if(prop === 'NODE_ENV') {
return 'development'
}
return typeof target[prop] === 'function' ? target[prop].bind(target) : target[prop]
}
})
}
// if(!process.env.TAURI_ENV) {
// process.env = new Proxy(process.env, {
// get(target, prop) {
// if(prop === 'NODE_ENV') {
// return 'development'
// }
// return typeof target[prop] === 'function' ? target[prop].bind(target) : target[prop]
// }
// })
// }

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down

0 comments on commit f6559d9

Please sign in to comment.