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..."