diff --git a/site2/tools/build-site.sh b/site2/tools/build-site.sh index 91363dbc24283..dbd4940995d3a 100755 --- a/site2/tools/build-site.sh +++ b/site2/tools/build-site.sh @@ -23,6 +23,7 @@ VERSION=`${ROOT_DIR}/src/get-project-version.py` set -x -e +export NODE_OPTIONS="--max-old-space-size=2048" #increase to 2gb, default is 512mb ${ROOT_DIR}/site2/tools/generate-api-docs.sh cd ${ROOT_DIR}/site2/website yarn @@ -76,4 +77,4 @@ mkdir -p ${ROOT_DIR}/generated-site/content cp -R ${ROOT_DIR}/generated-site/api ${ROOT_DIR}/generated-site/content cp -R ./build/pulsar/* ${ROOT_DIR}/generated-site/content cp -R ${ROOT_DIR}/generated-site/tools ${ROOT_DIR}/generated-site/content -cp -R ${ROOT_DIR}/site2/website/static/swagger/* ${ROOT_DIR}/generated-site/content/swagger/ \ No newline at end of file +cp -R ${ROOT_DIR}/site2/website/static/swagger/* ${ROOT_DIR}/generated-site/content/swagger/