feat: Mettre à jour la configuration du backend et le formulaire de contact pour utiliser BASE_URL

This commit is contained in:
Boris Waaub
2026-03-16 16:00:19 +01:00
parent c392670539
commit bbfc0949c4
7 changed files with 14 additions and 11 deletions
+2 -2
View File
@@ -19,9 +19,9 @@ COPY . .
RUN npm run build
EXPOSE 1313
EXPOSE 1313 3001
CMD ["hugo", "server", "-D", "--bind", "0.0.0.0", "--baseURL", "http://localhost:1313", "--appendPort=false"]
CMD ["sh", "-c", "BASE_URL=${BASE_URL:-http://localhost}; node contact-backend.js & hugo server -D --bind 0.0.0.0 --baseURL ${BASE_URL}:1313 --appendPort=false"]
# @TODO: Ajouter une étape de build pour générer les fichiers statiques de Hugo
# gunzippé et optimisé pour la production