From e83360d2af56ffa01a105cb58c0334e9f5cfb6d6 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Sat, 18 Oct 2025 12:18:04 +0200 Subject: [PATCH] test --- ct/nginxproxymanager.sh | 8 +++----- install/nginxproxymanager-install.sh | 6 +++--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/ct/nginxproxymanager.sh b/ct/nginxproxymanager.sh index 98248394..2c4259d2 100644 --- a/ct/nginxproxymanager.sh +++ b/ct/nginxproxymanager.sh @@ -50,12 +50,10 @@ function update_script() { sed -i "s|\"version\": \"0.0.0\"|\"version\": \"$RELEASE\"|" backend/package.json sed -i "s|\"version\": \"0.0.0\"|\"version\": \"$RELEASE\"|" frontend/package.json cd ./frontend || exit - # Remove yarn.lock to force fresh dependency resolution - rm -f yarn.lock - # Replace node-sass with sass (Dart Sass) for Node.js compatibility - $STD yarn remove node-sass 2>/dev/null || true - $STD yarn add -D sass + # First install to generate yarn.lock, then swap node-sass for sass $STD yarn install --network-timeout 600000 + $STD yarn remove node-sass + $STD yarn add -D sass $STD yarn build ) msg_ok "Built Frontend" diff --git a/install/nginxproxymanager-install.sh b/install/nginxproxymanager-install.sh index f470638c..a40297e0 100644 --- a/install/nginxproxymanager-install.sh +++ b/install/nginxproxymanager-install.sh @@ -116,10 +116,10 @@ msg_ok "Set up Environment" msg_info "Building Frontend" cd ./frontend export NODE_OPTIONS="--openssl-legacy-provider" -rm -f yarn.lock -$STD yarn remove node-sass 2>/dev/null || true -$STD yarn add -D sass +# First install to generate yarn.lock, then swap node-sass for sass $STD yarn install --network-timeout 600000 +$STD yarn remove node-sass +$STD yarn add -D sass $STD yarn build cp -r dist/* /app/frontend cp -r app-images/* /app/frontend/images