diff --git a/web/scripts/runEnv.sh b/web/scripts/runEnv.sh index a64063790..144031c79 100755 --- a/web/scripts/runEnv.sh +++ b/web/scripts/runEnv.sh @@ -18,6 +18,9 @@ if [[ ! " ${valid_deployments[@]} " =~ " ${deployment} " ]]; then fi node $SCRIPT_DIR/gitInfo.js -. $SCRIPT_DIR/../.env.${deployment}.public -. $SCRIPT_DIR/../.env.${deployment} + +envFile="$SCRIPT_DIR/../.env.${deployment}" +[ -f "$envFile.public" ] && . $envFile.public +[ -f "$envFile" ] && . $envFile + eval "$commands" diff --git a/web/src/layout/Header/navbar/Debug.tsx b/web/src/layout/Header/navbar/Debug.tsx index 253deab24..a8333db56 100644 --- a/web/src/layout/Header/navbar/Debug.tsx +++ b/web/src/layout/Header/navbar/Debug.tsx @@ -37,7 +37,7 @@ const Phase = () => { }); return ( <> - {phase && ( + {phase !== undefined && (