fix: align env var names for frontend API URL
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
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ AUTHENTIK_CLIENT_SECRET=change-me
|
|||||||
AUTHENTIK_AUDIENCE=headquarter-web
|
AUTHENTIK_AUDIENCE=headquarter-web
|
||||||
|
|
||||||
# Frontend Configuration
|
# Frontend Configuration
|
||||||
VITE_API_URL=http://localhost:8000
|
VITE_API_BASE_URL=http://localhost:8000
|
||||||
VITE_APP_URL=http://localhost:3000
|
VITE_APP_URL=http://localhost:3000
|
||||||
|
|
||||||
# Docker Configuration
|
# Docker Configuration
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ services:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
container_name: hq-web
|
container_name: hq-web
|
||||||
environment:
|
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}}
|
VITE_APP_URL: ${WEB_PUBLIC_URL:-https://${WEB_DOMAIN}}
|
||||||
depends_on:
|
depends_on:
|
||||||
- api
|
- api
|
||||||
|
|||||||
+1
-1
@@ -73,7 +73,7 @@ services:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
container_name: hq-web
|
container_name: hq-web
|
||||||
environment:
|
environment:
|
||||||
VITE_API_URL: http://localhost:8000
|
VITE_API_BASE_URL: http://localhost:8000
|
||||||
ports:
|
ports:
|
||||||
- "3000:80"
|
- "3000:80"
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
Reference in New Issue
Block a user