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"
|
echo "The branch name is $BRANCH"
|
||||||
if [ $BRANCH = "develop" ]
|
if [ $BRANCH = "develop" ]
|
||||||
then
|
then
|
||||||
SRC_MAPS="--sourcemap"
|
# SRC_MAPS="--sourcemap"
|
||||||
echo "Source maps are enabled"
|
echo "Source maps are NOT enabled as they consume to much RAM"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $BRANCH = "master" ] || [ $BRANCH = "develop" ]
|
if [ $BRANCH = "master" ] || [ $BRANCH = "develop" ]
|
||||||
|
@ -38,12 +38,12 @@ then
|
||||||
export ASSET_URL
|
export ASSET_URL
|
||||||
echo "$ASSET_URL"
|
echo "$ASSET_URL"
|
||||||
else
|
else
|
||||||
ASSET_URL="mc/$BRANCH"
|
ASSET_URL="$BRANCH"
|
||||||
export ASSET_URL
|
export ASSET_URL
|
||||||
echo "$ASSET_URL"
|
echo "$ASSET_URL"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export NODE_OPTIONS=--max-old-space-size=32768
|
export NODE_OPTIONS=--max-old-space-size=7000
|
||||||
vite build $SRC_MAPS
|
vite build $SRC_MAPS
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue