From 3c1c05178ec4c239e738a3313dbfef37ca9c1533 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Wed, 27 May 2026 15:50:01 +0200 Subject: [PATCH] refactor: update frontend build process in installation scripts --- ct/bunkerm.sh | 4 ++-- install/bunkerm-install.sh | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) 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