refactor: update frontend build process in installation scripts
This commit is contained in:
@@ -45,8 +45,8 @@ function update_script() {
|
|||||||
msg_info "Rebuilding Frontend"
|
msg_info "Rebuilding Frontend"
|
||||||
cd /opt/bunkerm/frontend
|
cd /opt/bunkerm/frontend
|
||||||
export NODE_OPTIONS="--max-old-space-size=4096"
|
export NODE_OPTIONS="--max-old-space-size=4096"
|
||||||
$STD npm install
|
NODE_ENV=development $STD npm ci
|
||||||
$STD npm run build
|
AUTH_SECRET="build-time-placeholder" NEXT_TELEMETRY_DISABLED=1 $STD npm run build
|
||||||
unset NODE_OPTIONS
|
unset NODE_OPTIONS
|
||||||
mkdir -p /nextjs
|
mkdir -p /nextjs
|
||||||
cp -r /opt/bunkerm/frontend/.next/standalone/. /nextjs/
|
cp -r /opt/bunkerm/frontend/.next/standalone/. /nextjs/
|
||||||
|
|||||||
@@ -79,9 +79,8 @@ msg_ok "Set up Python Environment"
|
|||||||
|
|
||||||
msg_info "Building Frontend"
|
msg_info "Building Frontend"
|
||||||
cd /opt/bunkerm/frontend
|
cd /opt/bunkerm/frontend
|
||||||
[[ -f postcss.config.js ]] && mv postcss.config.js postcss.config.cjs
|
|
||||||
export NODE_OPTIONS="--max-old-space-size=4096"
|
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
|
AUTH_SECRET="build-time-placeholder" NEXT_TELEMETRY_DISABLED=1 $STD npm run build
|
||||||
unset NODE_OPTIONS
|
unset NODE_OPTIONS
|
||||||
mkdir -p /nextjs
|
mkdir -p /nextjs
|
||||||
|
|||||||
Reference in New Issue
Block a user