diff --git a/Dockerfile.business b/Dockerfile.business index 384dc74..ff00c81 100644 --- a/Dockerfile.business +++ b/Dockerfile.business @@ -79,15 +79,15 @@ RUN rm -rf .techradar/data/radar && \ cp radar-business/config-business.json .techradar/data/config.json && \ rm -rf .techradar/public && mkdir -p .techradar/public && \ cp -r public/* .techradar/public/ && \ - cp public/team.html .techradar/public/team.html 2>/dev/null || true && \ + cp public/_team-content.html .techradar/public/_team-content.html 2>/dev/null || true && \ cp public/team-visualization-data.json .techradar/public/team-visualization-data.json 2>/dev/null || true && \ cp about.md .techradar/data/about.md 2>/dev/null || echo "about.md not found, skipping" && \ cp custom.css .techradar/src/styles/custom.css 2>/dev/null || echo "custom.css not found, skipping" && \ echo "Fichiers public copiés" && \ echo "📁 Vérification des fichiers team dans .techradar/public/:" && \ ls -la .techradar/public/ | grep -E "(team\.html|team-visualization)" && echo "✅ Fichiers team trouvés" || (echo "⚠️ Fichiers team non trouvés dans .techradar/public/" && echo "📁 Contenu de public/ source:" && ls -la public/ | head -10) && \ - 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" + echo "📁 Vérification que _team-content.html existe dans public/ source:" && \ + test -f public/_team-content.html && echo "✅ public/_team-content.html existe" || echo "❌ public/_team-content.html n'existe pas" # Diagnostic : compter les fichiers markdown copiés dans .techradar/data/radar RUN echo "📊 Comptage des fichiers .md dans .techradar/data/radar" && \ @@ -121,19 +121,19 @@ RUN /tmp/add_team_link.sh WORKDIR /app/.techradar RUN npm run build:data RUN npm run build -# S'assurer que team.html et team-visualization-data.json sont copiés dans out/ +# S'assurer que _team-content.html et team-visualization-data.json sont copiés dans out/ # Next.js en mode export copie automatiquement les fichiers de public/, mais vérifions quand même RUN if [ -d "out" ]; then \ echo "📁 Contenu de out/ avant copie:" && \ ls -la out/ | head -10 && \ echo "" && \ - echo "🔍 Recherche de team.html..." && \ - if [ -f "public/team.html" ]; then \ - cp -v public/team.html out/team.html && echo "✅ team.html copié depuis public/ vers out/"; \ - elif [ -f "/app/public/team.html" ]; then \ - cp -v /app/public/team.html out/team.html && echo "✅ team.html copié depuis /app/public/ vers out/"; \ + echo "🔍 Recherche de _team-content.html..." && \ + if [ -f "public/_team-content.html" ]; then \ + cp -v public/_team-content.html out/_team-content.html && echo "✅ _team-content.html copié depuis public/ vers out/"; \ + elif [ -f "/app/public/_team-content.html" ]; then \ + cp -v /app/public/_team-content.html out/_team-content.html && echo "✅ _team-content.html copié depuis /app/public/ vers out/"; \ else \ - echo "⚠️ team.html introuvable dans public/ ou /app/public/"; \ + echo "⚠️ _team-content.html introuvable dans public/ ou /app/public/"; \ echo "📁 Contenu de public/:" && \ ls -la public/ 2>/dev/null | head -10 || echo "public/ non accessible"; \ echo "📁 Contenu de /app/public/:" && \ @@ -151,8 +151,8 @@ RUN if [ -d "out" ]; then \ mkdir -p out/team && \ cp -rv /app/.techradar/public/team/* out/team/ && echo "✅ /team/index.html copié depuis /app/.techradar/public/team/"; \ fi && \ - echo "🔍 VÉRIFICATION: team.html dans out/:" && \ - ls -la out/team.html 2>/dev/null || echo "❌ team.html absent de out/" && \ + echo "🔍 VÉRIFICATION: _team-content.html dans out/:" && \ + ls -la out/_team-content.html 2>/dev/null || echo "❌ _team-content.html absent de out/" && \ echo "" && \ echo "📁 Vérification finale dans out/:" && \ ls -la out/ | grep -E "(team\.html|team-visualization)" && echo "✅ Fichiers team présents dans out/" || echo "⚠️ Fichiers team non trouvés dans out/"; \ diff --git a/public/team.html b/public/_team-content.html similarity index 100% rename from public/team.html rename to public/_team-content.html diff --git a/public/team-block-script.js b/public/team-block-script.js index 6682f92..6baaa5b 100644 --- a/public/team-block-script.js +++ b/public/team-block-script.js @@ -9,11 +9,11 @@ return; } - console.log('🔄 ÉQUIPE: Chargement du contenu team.html'); + console.log('🔄 ÉQUIPE: Chargement du contenu _team-content.html'); - // Charger le contenu de team.html via fetch + // Charger le contenu via fetch (nom de fichier qui évite la redirection du reverse proxy) function loadTeamContent() { - fetch('/team.html') + fetch('/_team-content.html') .then(function(response) { if (!response.ok) throw new Error('HTTP ' + response.status); return response.text();