From 56f010c21c57ae93ab5208efd8737a29ae7e961f Mon Sep 17 00:00:00 2001 From: syoul Date: Sun, 7 Dec 2025 08:08:22 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20modification=20directe=20dans=20Dockerfi?= =?UTF-8?q?le=20sans=20script=20s=C3=A9par=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Création de team.tsx directement dans le Dockerfile - Modification de Navigation.tsx avec Python inline - Méthode alternative si le pattern regex ne fonctionne pas - Plus simple et plus fiable que d'utiliser un script séparé --- Dockerfile.business | 98 ++++++++++++++++++++++++++++++++++++++------- 1 file changed, 83 insertions(+), 15 deletions(-) diff --git a/Dockerfile.business b/Dockerfile.business index d8c7c77..e3eb9e0 100644 --- a/Dockerfile.business +++ b/Dockerfile.business @@ -74,21 +74,89 @@ RUN mkdir -p .techradar/data && \ echo "📁 Vérification que team.html existe dans public/ source:" && \ test -f public/team.html && echo "✅ public/team.html existe" || echo "❌ public/team.html n'existe pas" -# 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 "📋 Vérification que Navigation.tsx existe:" && \ - test -f .techradar/src/components/Navigation/Navigation.tsx && echo "✅ Navigation.tsx existe" || (echo "❌ Navigation.tsx n'existe pas" && ls -la .techradar/src/components/Navigation/ 2>/dev/null && exit 1) && \ - echo "📋 État de Navigation.tsx AVANT modification:" && \ - grep -A 3 'href="/overview"' .techradar/src/components/Navigation/Navigation.tsx || echo "Pattern overview non trouvé" && \ - echo "" && \ - ./scripts/create-team-page.sh || (echo "❌ Script create-team-page.sh a échoué" && cat .techradar/src/components/Navigation/Navigation.tsx && exit 1) && \ - echo "✅ Script create-team-page.sh terminé" && \ - echo "" && \ - echo "📋 Vérification de Navigation.tsx:" && \ - grep -q 'href="/team"' .techradar/src/components/Navigation/Navigation.tsx && echo "✅ Lien Équipe trouvé" || (echo "❌ Lien Équipe NON trouvé" && cat .techradar/src/components/Navigation/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" && ls -la .techradar/src/pages/ 2>/dev/null && exit 1) +# Créer la page Next.js /team +RUN mkdir -p .techradar/src/pages && \ + cat > .techradar/src/pages/team.tsx << 'EOF' && \ +import Head from "next/head"; +import { CustomPage } from "@/pages/_app"; + +const TeamPage: CustomPage = () => { + return ( + <> + + Équipe & Technologies - Laplank + +
+