diff --git a/ct/bunkerm.sh b/ct/bunkerm.sh index f31f4e9b..dd78f58d 100644 --- a/ct/bunkerm.sh +++ b/ct/bunkerm.sh @@ -45,8 +45,8 @@ function update_script() { msg_info "Rebuilding Frontend" cd /opt/bunkerm/frontend export NODE_OPTIONS="--max-old-space-size=4096" - $STD npm install - $STD npm run build + NODE_ENV=development $STD npm ci + 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/ diff --git a/install/bunkerm-install.sh b/install/bunkerm-install.sh index 78308b08..86a1f78b 100644 --- a/install/bunkerm-install.sh +++ b/install/bunkerm-install.sh @@ -79,9 +79,8 @@ msg_ok "Set up Python Environment" msg_info "Building Frontend" cd /opt/bunkerm/frontend -[[ -f postcss.config.js ]] && mv postcss.config.js postcss.config.cjs export NODE_OPTIONS="--max-old-space-size=4096" -AUTH_SECRET="build-time-placeholder" NEXT_TELEMETRY_DISABLED=1 $STD npm install +NODE_ENV=development $STD npm ci AUTH_SECRET="build-time-placeholder" NEXT_TELEMETRY_DISABLED=1 $STD npm run build unset NODE_OPTIONS mkdir -p /nextjs