fix: increase Node.js memory limit during build process for BunkerM and Colanode

This commit is contained in:
MickLesk
2026-05-12 21:23:08 +02:00
parent c744b10caa
commit 916622c788
4 changed files with 13 additions and 4 deletions

View File

@@ -79,8 +79,10 @@ msg_ok "Set up Python Environment"
msg_info "Building Frontend"
cd /opt/bunkerm/frontend
AUTH_SECRET="build-time-placeholder" NEXT_TELEMETRY_DISABLED=1 $STD npm ci
export NODE_OPTIONS="--max-old-space-size=4096"
AUTH_SECRET="build-time-placeholder" NEXT_TELEMETRY_DISABLED=1 $STD npm install
AUTH_SECRET="build-time-placeholder" NEXT_TELEMETRY_DISABLED=1 $STD npm run build
unset NODE_OPTIONS
mkdir -p /nextjs
cp -r /opt/bunkerm/frontend/.next/standalone/. /nextjs/
cp -r /opt/bunkerm/frontend/.next/static /nextjs/.next/static