forked from MapComplete/MapComplete
CI: disable source maps to deploy on dev.mapcomplete.org
This commit is contained in:
parent
14e19404d8
commit
4034a6c764
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue