From 863e049418b67eeece3d86fd92e62f0602a6518e Mon Sep 17 00:00:00 2001 From: Brooke Date: Wed, 6 Jul 2022 12:17:47 -0700 Subject: [PATCH 1/2] PROD-2145 #comment don't explicitly set the app env in the default start shell script #time 5m --- start-ssl.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/start-ssl.sh b/start-ssl.sh index fdbc5ff07..34378daf0 100644 --- a/start-ssl.sh +++ b/start-ssl.sh @@ -3,6 +3,5 @@ export SSL_CRT_FILE=ssl/server.cert export SSL_KEY_FILE=ssl/server.key export HOST=local.topcoder-dev.com export PORT=3003 -export REACT_APP_HOST_ENV=default nvm use yarn react-app-rewired start From eccf41ab52526269ba270dea7323473f7295231b Mon Sep 17 00:00:00 2001 From: Brooke Date: Wed, 6 Jul 2022 12:40:14 -0700 Subject: [PATCH 2/2] PROD-2145 #comment add more logging #time 5m --- config/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/index.js b/config/index.js index f42b01444..85a7013e3 100644 --- a/config/index.js +++ b/config/index.js @@ -3,7 +3,8 @@ module.exports = (() => { const env = process.env.REACT_APP_HOST_ENV || "dev"; - console.info(`REACT_APP_HOST_ENV: "${env}"`); + console.info(`REACT_APP_HOST_ENV: "${process.env.REACT_APP_HOST_ENV}"`); + console.info(`env: "${env}"`); // for security reason don't let to require any arbitrary file defined in process.env if (["prod", "dev"].indexOf(env) < 0) {