把 inProd 定义在每个需要的文件的内部,而不是进行全局定义。
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
const coretool = require('wo-core-toolkit')
|
||||
|
||||
const inProd = process.env.NODE_ENV === 'production' // 用 'production' 测试,以防在某些场景里 NODE_ENV 未定义。
|
||||
|
||||
module.exports = {
|
||||
webProtocol: inProd ? 'httpall' : 'http',
|
||||
webHostname: inProd ? 'vic-user.bittic.org' : 'localhost',
|
||||
|
||||
Reference in New Issue
Block a user