Deploy: shallow fetch + dynamische /curator-Seite für Docker-Build
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user