build.sh: add export NODE_ENV=production

This commit is contained in:
Starbeamrainbowlabs 2022-07-06 02:33:37 +01:00
parent 0e7b292bb1
commit 63abd1f539
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,9 @@ if [[ "${1}" == "ci" ]] && [[ ! -z "${is_main}" ]]; then
echo "Skipping build, because this commit does not appear to be on the 'main' branch, and we only deploy commits on the 'main' branch.";
fi
# This causes the eleventy docs site to minify stuff
export NODE_ENV=production;
# ██████ ██ ██████ ██ ██ ██ ██ ██████
# ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
# ██ ██ ██████ ██ ██ ██ ██ ██ ██