From ad4a92ceed8720b306102ae9a4e644ad5577e09a Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Sun, 17 Aug 2025 10:42:08 +0000 Subject: [PATCH] Support test/qa envrionment --- run.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 27b6203..47fce94 100755 --- a/run.sh +++ b/run.sh @@ -4,12 +4,17 @@ set -x export NODE_ENV="${NODE_ENV:-development}" -if [ $NODE_ENV == "development" ]; then +if [ $NODE_ENV = "development" ]; then # this runs webpack-dev-server with hot reloading echo "Development build" npm install --legacy-peer-deps npm start # npm run build +elif [ $NODE_ENV = "qa" -o $NODE_ENV = "test" ]; then + echo "QA build" + export NODE_ENV="test" + npm install --legacy-peer-deps + npm start else # build the app and serve it via nginx echo "Production build"