From da0b90ce33be1e7a018cd37b038da94402d2eb89 Mon Sep 17 00:00:00 2001 From: Fusion Date: Mon, 18 May 2026 11:02:06 +0200 Subject: [PATCH] fix: align env var names for frontend API URL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The frontend code uses VITE_API_BASE_URL but docker-compose files and .env.example were setting VITE_API_URL, causing the login redirect to fall back to localhost:8000. - Update docker-compose.traefik.yml: VITE_API_URL → VITE_API_BASE_URL - Update docker-compose.yml: VITE_API_URL → VITE_API_BASE_URL - Update .env.example: VITE_API_URL → VITE_API_BASE_URL --- .env.example | 2 +- docker-compose.traefik.yml | 2 +- docker-compose.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index f573d03..c81d8c2 100644 --- a/.env.example +++ b/.env.example @@ -37,7 +37,7 @@ AUTHENTIK_CLIENT_SECRET=change-me AUTHENTIK_AUDIENCE=headquarter-web # Frontend Configuration -VITE_API_URL=http://localhost:8000 +VITE_API_BASE_URL=http://localhost:8000 VITE_APP_URL=http://localhost:3000 # Docker Configuration diff --git a/docker-compose.traefik.yml b/docker-compose.traefik.yml index 2211c12..618afc5 100644 --- a/docker-compose.traefik.yml +++ b/docker-compose.traefik.yml @@ -91,7 +91,7 @@ services: dockerfile: Dockerfile container_name: hq-web environment: - VITE_API_URL: ${API_PUBLIC_URL:-https://${API_DOMAIN}} + VITE_API_BASE_URL: ${API_PUBLIC_URL:-https://${API_DOMAIN}} VITE_APP_URL: ${WEB_PUBLIC_URL:-https://${WEB_DOMAIN}} depends_on: - api diff --git a/docker-compose.yml b/docker-compose.yml index c3c604f..e1be84c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -73,7 +73,7 @@ services: dockerfile: Dockerfile container_name: hq-web environment: - VITE_API_URL: http://localhost:8000 + VITE_API_BASE_URL: http://localhost:8000 ports: - "3000:80" depends_on: