From bc8a96b3fd2042939ae7d5066f7ca61e639ec5d4 Mon Sep 17 00:00:00 2001 From: vhsdream Date: Tue, 10 Feb 2026 09:13:22 -0500 Subject: [PATCH] nextExplorer: Update build for v2.2.0 --- ct/nextexplorer.sh | 10 +++++----- install/nextexplorer-install.sh | 21 ++++++++++----------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/ct/nextexplorer.sh b/ct/nextexplorer.sh index 201525c8e..c3b7777a5 100644 --- a/ct/nextexplorer.sh +++ b/ct/nextexplorer.sh @@ -41,14 +41,14 @@ function update_script() { msg_info "Updating nextExplorer" APP_DIR="/opt/nextExplorer/app" mkdir -p "$APP_DIR" - cd /opt/nextExplorer/backend + cd /opt/nextExplorer export NODE_ENV=production - $STD npm ci - cd /opt/nextExplorer/frontend + $STD npm ci --workspace backend + cd /opt/nextExplorer unset NODE_ENV export NODE_ENV=development - $STD npm ci - $STD npm run build -- --sourcemap false + $STD npm ci --workspace frontend + $STD npm run -w frontend build -- --sourcemap false unset NODE_ENV cd /opt/nextExplorer/ mv backend/{node_modules,src,package.json} "$APP_DIR" diff --git a/install/nextexplorer-install.sh b/install/nextexplorer-install.sh index 11b8559af..eeff9f311 100644 --- a/install/nextexplorer-install.sh +++ b/install/nextexplorer-install.sh @@ -33,18 +33,16 @@ APP_DIR="/opt/nextExplorer/app" LOCAL_IP="$(hostname -I | awk '{print $1}')" mkdir -p "$APP_DIR" mkdir -p /etc/nextExplorer -cd /opt/nextExplorer/backend -export NODE_ENV=production -$STD npm ci -unset NODE_ENV - -cd /opt/nextExplorer/frontend -export NODE_ENV=development -$STD npm ci -$STD npm run build -- --sourcemap false -unset NODE_ENV - cd /opt/nextExplorer +export NODE_ENV=production +$STD npm ci --workspace backend +unset NODE_ENV + +export NODE_ENV=development +$STD npm ci --workspace frontend +$STD npm run -w frontend build -- --sourcemap false +unset NODE_ENV + mv backend/{node_modules,src,package.json} "$APP_DIR" mv frontend/dist/ "$APP_DIR"/src/public msg_ok "Built nextExplorer" @@ -84,6 +82,7 @@ SESSION_SECRET="${SECRET}" # OIDC_CLIENT_ID= # OIDC_CLIENT_SECRET= # OIDC_CALLBACK_URL= +# OIDC_LOGOUT_URL= # OIDC_SCOPES= # OIDC_AUTO_CREATE_USERS=true