forked from MapComplete/MapComplete
Fix build path for production
This commit is contained in:
parent
2964c97ac6
commit
481cd3369f
1 changed files with 11 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue