From 7c5c6739fa51990df8f964b5692736f0dd8adc42 Mon Sep 17 00:00:00 2001 From: "C. Fuhrman" Date: Sat, 11 Jan 2025 11:28:51 -0500 Subject: [PATCH] =?UTF-8?q?D=C3=A9finir=20les=20variables=20VITE=5F*=20(vi?= =?UTF-8?q?de)=20Vite=20est=20cens=C3=A9=20ne=20pas=20les=20changer=20par?= =?UTF-8?q?=20un=20.env.*=20(selon=20copilot)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 97c112f..184857f 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -3,12 +3,13 @@ services: frontend: image: fuhrmanator/evaluetonsavoir-frontend:latest container_name: frontend + environment: + # Define empty VITE_BACKEND_URL because it's production + - VITE_BACKEND_URL= + # Define empty VITE_BACKEND_SOCKET_URL so it will default to window.location.host + - VITE_BACKEND_SOCKET_URL= ports: - "5173:5173" - environment: - VITE_BACKEND_URL: "http://localhost:4400" - # don't define VITE_BACKEND_SOCKET_URL so it will default to window.location.host - # VITE_BACKEND_SOCKET_URL: "" restart: always backend: