feat: Mettre à jour la configuration du backend et le formulaire de contact pour utiliser BASE_URL
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user