From 481cd3369fdbda00c93e4fff2cbd37a01a49f01e Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 29 Jan 2023 17:43:38 +0100 Subject: [PATCH] Fix build path for production --- scripts/build.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 35780073c7..71c5775e04 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -33,9 +33,17 @@ then echo "Source maps are enabled" fi -ASSET_URL="mc/$BRANCH" -export ASSET_URL -echo "$ASSET_URL" +if [ $BRANCH = "master" ] +then + ASSET_URL="./" + export ASSET_URL + echo "$ASSET_URL" +else + ASSET_URL="mc/$BRANCH" + export ASSET_URL + echo "$ASSET_URL" +fi + export NODE_OPTIONS=--max-old-space-size=6500 vite build $SRC_MAPS