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:
@@ -77,12 +77,17 @@ RUN mkdir -p .techradar/data && \
|
||||
# Créer la page Next.js /team et modifier Navigation
|
||||
RUN chmod +x scripts/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 && \
|
||||
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:" && \
|
||||
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:" && \
|
||||
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
|
||||
# Utiliser WORKDIR pour changer de répertoire de manière fiable
|
||||
|
||||
Reference in New Issue
Block a user