fix: amélioration logs Dockerfile pour diagnostic Navigation.tsx

- Affichage du contenu de Navigation.tsx avant modification
- Affichage complet après modification pour vérification
- Exit code 1 si la modification échoue
- Logs détaillés pour identifier le problème
This commit is contained in:
syoul
2025-12-07 07:57:19 +01:00
parent 73331e27c1
commit 56401bae09

View File

@@ -77,12 +77,17 @@ RUN mkdir -p .techradar/data && \
# Créer la page Next.js /team et modifier Navigation # Créer la page Next.js /team et modifier Navigation
RUN chmod +x scripts/create-team-page.sh && \ RUN chmod +x scripts/create-team-page.sh && \
echo "🚀 Exécution de create-team-page.sh..." && \ echo "🚀 Exécution de create-team-page.sh..." && \
echo "📋 État de Navigation.tsx AVANT modification:" && \
grep -A 3 'href="/overview"' .techradar/src/components/Navigation/Navigation.tsx || echo "Pattern overview non trouvé" && \
./scripts/create-team-page.sh && \ ./scripts/create-team-page.sh && \
echo "✅ Script create-team-page.sh terminé" && \ echo "✅ Script create-team-page.sh terminé" && \
echo "📋 État de Navigation.tsx APRÈS modification:" && \
cat .techradar/src/components/Navigation/Navigation.tsx && \
echo "" && \
echo "📋 Vérification de Navigation.tsx:" && \ echo "📋 Vérification de Navigation.tsx:" && \
grep -q 'href="/team"' .techradar/src/components/Navigation/Navigation.tsx && echo "✅ Lien Équipe trouvé dans Navigation.tsx" || echo "❌ Lien Équipe NON trouvé dans Navigation.tsx" && \ grep -q 'href="/team"' .techradar/src/components/Navigation/Navigation.tsx && echo "✅ Lien Équipe trouvé dans Navigation.tsx" || (echo "❌ Lien Équipe NON trouvé dans Navigation.tsx" && exit 1) && \
echo "📋 Vérification de team.tsx:" && \ echo "📋 Vérification de team.tsx:" && \
test -f .techradar/src/pages/team.tsx && echo "✅ team.tsx existe" || echo "❌ team.tsx n'existe pas" test -f .techradar/src/pages/team.tsx && echo "✅ team.tsx existe" || (echo "❌ team.tsx n'existe pas" && exit 1)
# Builder l'application en mode production pour éviter Fast Refresh # Builder l'application en mode production pour éviter Fast Refresh
# Utiliser WORKDIR pour changer de répertoire de manière fiable # Utiliser WORKDIR pour changer de répertoire de manière fiable