From d7fee047c203259127542174722576e745b1872a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=B6rdle=20Bot?= Date: Wed, 3 Dec 2025 15:16:38 +0100 Subject: [PATCH] =?UTF-8?q?Deploy:=20shallow=20fetch=20+=20dynamische=20/c?= =?UTF-8?q?urator-Seite=20f=C3=BCr=20Docker-Build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/curator/page.tsx | 6 ++++++ scripts/deploy.sh | 11 ++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/app/curator/page.tsx b/app/curator/page.tsx index c975387..cfb2955 100644 --- a/app/curator/page.tsx +++ b/app/curator/page.tsx @@ -1,5 +1,11 @@ 'use client'; +// Diese Seite ist komplett client-seitig und nutzt Local Storage sowie +// Header-basierte Authentifizierung. Wir erzwingen daher eine dynamische +// Auslieferung, damit Next.js beim Build keine statische Vorab-Renderung +// von /curator versucht (die zu Fehlern führen kann). +export const dynamic = 'force-dynamic'; + import { useEffect, useRef, useState } from 'react'; import { useTranslations } from 'next-intl'; diff --git a/scripts/deploy.sh b/scripts/deploy.sh index f6d44b1..cf92b0f 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -46,13 +46,10 @@ else echo "⚠️ Could not determine database path from config files" fi -# Pull latest changes -echo "📥 Pulling latest changes from git..." -git pull - -# Fetch all tags -echo "🏷️ Fetching git tags..." -git fetch --tags +# Nur neueste Version holen (shallow fetch), vollständiges Repo ist im Deployment nicht nötig +echo "📥 Fetching latest commit (shallow clone) from git..." +git fetch --prune --tags --depth=1 origin master +git reset --hard origin/master # Prüfe und erstelle/repariere Netzwerk falls nötig echo "🌐 Prüfe Docker-Netzwerk..."