Skip to content

Commit d0f00dd

Browse files
PROD-2145 #comment change APPENV to REACT_APP_HOST_ENV #time 5m
1 parent 5e2a27a commit d0f00dd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* global process */
22

33
module.exports = (() => {
4-
const env = process.env.APPENV || "dev";
4+
const env = process.env.REACT_APP_HOST_ENV || "dev";
55

6-
console.info(`APPENV: "${env}"`);
6+
console.info(`REACT_APP_HOST_ENV: "${env}"`);
77

88
// for security reason don't let to require any arbitrary file defined in process.env
99
if (["prod", "dev"].indexOf(env) < 0) {

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ module.exports = (webpackConfigEnv) => {
119119
new webpack.DefinePlugin({
120120
"process.env": {
121121
..._.mapValues(config, (value) => JSON.stringify(value)),
122-
APPENV: JSON.stringify(process.env.APPENV),
122+
REACT_APP_HOST_ENV: JSON.stringify(process.env.REACT_APP_HOST_ENV),
123123
APPMODE: JSON.stringify(process.env.APPMODE),
124124
},
125125
}),

0 commit comments

Comments
 (0)