From 4f0670d94cafd8080d2ab4c9056ab663de4bb94a Mon Sep 17 00:00:00 2001 From: sysops Date: Tue, 17 Mar 2026 19:51:21 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20update.sh=20Frontend-Deployment=20?= =?UTF-8?q?=E2=80=94=20standalone=20server.js=20Pfad=20korrekt=20ermitteln?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 456d0f1..6a98a25 100755 --- a/update.sh +++ b/update.sh @@ -104,7 +104,9 @@ log "Backend eingespielt" info "Spiele Frontend ein (standalone)..." mkdir -p "$FRONTEND_DIR" -rsync -a --delete "$BUILD_DIR/.next/standalone/" "$FRONTEND_DIR/" +# Next.js standalone mirrors the absolute build path — find the dir that contains server.js +STANDALONE_ROOT=$(dirname "$(find "$BUILD_DIR/.next/standalone" -name "server.js" | head -1)") +rsync -a --delete "$STANDALONE_ROOT/" "$FRONTEND_DIR/" mkdir -p "$FRONTEND_DIR/.next/static" rsync -a --delete "$BUILD_DIR/.next/static/" "$FRONTEND_DIR/.next/static/" if [[ -d "$BUILD_DIR/public" ]]; then