19 lines
725 B
Bash
19 lines
725 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
umask 077
|
|
|
|
# Runs only inside the unique workspace created by production48.py.
|
|
cd -- "${1:?workspace required}/source"
|
|
export DISABLE_PERF_GUARD_AUTO_INSTALL=1
|
|
export CI=1 NEXT_TELEMETRY_DISABLED=1 NEXT_IGNORE_BUILD_TYPECHECK=0
|
|
export NEXT_DIST_DIR=.next CIRCLE_NODE_TOTAL=4
|
|
export NODE_OPTIONS=--max-old-space-size=8192
|
|
export npm_config_cache="$(dirname "$PWD")/npm-cache"
|
|
export npm_config_registry="${BUILD_NPM_REGISTRY:-https://registry.npmjs.org}"
|
|
|
|
# Do not change the machine's global pnpm or install any system service.
|
|
pnpm9() { npm exec --yes --package=pnpm@9.12.3 -- pnpm "$@"; }
|
|
test "$(pnpm9 --version)" = 9.12.3
|
|
pnpm9 install --frozen-lockfile --ignore-scripts
|
|
pnpm9 build
|