fix: renommer fichier sans extension pour éviter redirection reverse proxy

Le reverse proxy redirige tout *.html vers le chemin sans extension.
Solution: utiliser _team-content (sans .html)
This commit is contained in:
syoul
2025-12-09 16:01:56 +01:00
parent c38ea72928
commit 484f0313b2
3 changed files with 14 additions and 14 deletions

View File

@@ -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-content.html .techradar/public/_team-content.html 2>/dev/null || true && \
cp public/_team-content .techradar/public/_team-content 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-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"
echo "📁 Vérification que _team-content existe dans public/ source:" && \
test -f public/_team-content && echo "✅ public/_team-content existe" || echo "❌ public/_team-content n'existe pas"
# Diagnostic : compter les fichiers markdown copiés dans .techradar/data/radar
RUN echo "📊 Comptage des fichiers .md dans .techradar/data/radar" && \
@@ -127,13 +127,13 @@ RUN if [ -d "out" ]; then \
echo "📁 Contenu de out/ avant copie:" && \
ls -la out/ | head -10 && \
echo "" && \
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/"; \
echo "🔍 Recherche de _team-content..." && \
if [ -f "public/_team-content" ]; then \
cp -v public/_team-content out/_team-content && echo "✅ _team-content copié depuis public/ vers out/"; \
elif [ -f "/app/public/_team-content" ]; then \
cp -v /app/public/_team-content out/_team-content && echo "✅ _team-content copié depuis /app/public/ vers out/"; \
else \
echo "⚠️ _team-content.html introuvable dans public/ ou /app/public/"; \
echo "⚠️ _team-content 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-content.html dans out/:" && \
ls -la out/_team-content.html 2>/dev/null || echo "❌ _team-content.html absent de out/" && \
echo "🔍 VÉRIFICATION: _team-content dans out/:" && \
ls -la out/_team-content 2>/dev/null || echo "❌ _team-content 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/"; \

View File

@@ -9,11 +9,11 @@
return;
}
console.log('🔄 ÉQUIPE: Chargement du contenu _team-content.html');
console.log('🔄 ÉQUIPE: Chargement du contenu _team-content');
// Charger le contenu via fetch (nom de fichier qui évite la redirection du reverse proxy)
// Charger le contenu via fetch (fichier sans extension pour éviter redirection reverse proxy)
function loadTeamContent() {
fetch('/_team-content.html')
fetch('/_team-content')
.then(function(response) {
if (!response.ok) throw new Error('HTTP ' + response.status);
return response.text();