我不明白的是'"production"',外边要分别加单引号 双引号。下边说的string variables need to be wrapped into single and double quotes '"..."',什么是字符串变量?
// config/prod.env.jsmodule.exports = {
NODE_ENV: '"production"',
DEBUG_MODE: false,
API_KEY: '"..."' // this is shared between all environments}// config/dev.env.jsmodule.exports = merge(prodEnv, {
NODE_ENV: '"development"',
DEBUG_MODE: true // this overrides the DEBUG_MODE value of prod.env})// config/test.env.jsmodule.exports = merge(devEnv, {
NODE_ENV: '"testing"'})
Note: string variables need to be wrapped into single and double quotes '"..."'
FFIVE
明月笑刀无情
随时随地看视频慕课网APP
相关分类