Deploy: shallow fetch + dynamische /curator-Seite für Docker-Build
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
'use client';
|
'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 { useEffect, useRef, useState } from 'react';
|
||||||
import { useTranslations } from 'next-intl';
|
import { useTranslations } from 'next-intl';
|
||||||
|
|
||||||
|
|||||||
@@ -46,13 +46,10 @@ else
|
|||||||
echo "⚠️ Could not determine database path from config files"
|
echo "⚠️ Could not determine database path from config files"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Pull latest changes
|
# Nur neueste Version holen (shallow fetch), vollständiges Repo ist im Deployment nicht nötig
|
||||||
echo "📥 Pulling latest changes from git..."
|
echo "📥 Fetching latest commit (shallow clone) from git..."
|
||||||
git pull
|
git fetch --prune --tags --depth=1 origin master
|
||||||
|
git reset --hard origin/master
|
||||||
# Fetch all tags
|
|
||||||
echo "🏷️ Fetching git tags..."
|
|
||||||
git fetch --tags
|
|
||||||
|
|
||||||
# Prüfe und erstelle/repariere Netzwerk falls nötig
|
# Prüfe und erstelle/repariere Netzwerk falls nötig
|
||||||
echo "🌐 Prüfe Docker-Netzwerk..."
|
echo "🌐 Prüfe Docker-Netzwerk..."
|
||||||
|
|||||||
Reference in New Issue
Block a user