CI: disable source maps to deploy on dev.mapcomplete.org

This commit is contained in:
Pieter Vander Vennet 2023-08-31 22:59:50 +02:00
parent 14e19404d8
commit 4034a6c764

View file

@ -28,8 +28,8 @@ BRANCH=`git rev-parse --abbrev-ref HEAD`
echo "The branch name is $BRANCH"
if [ $BRANCH = "develop" ]
then
SRC_MAPS="--sourcemap"
echo "Source maps are enabled"
# SRC_MAPS="--sourcemap"
echo "Source maps are NOT enabled as they consume to much RAM"
fi
if [ $BRANCH = "master" ] || [ $BRANCH = "develop" ]
@ -38,12 +38,12 @@ then
export ASSET_URL
echo "$ASSET_URL"
else
ASSET_URL="mc/$BRANCH"
ASSET_URL="$BRANCH"
export ASSET_URL
echo "$ASSET_URL"
fi
export NODE_OPTIONS=--max-old-space-size=32768
export NODE_OPTIONS=--max-old-space-size=7000
vite build $SRC_MAPS