Fix jwt-token

This commit is contained in:
2025-08-18 05:54:59 +02:00
parent af5b1ab406
commit b70153da47
2 changed files with 9 additions and 2 deletions

7
.env Normal file
View File

@@ -0,0 +1,7 @@
# For local development, uncomment these lines:
# VITE_API_URL=http://localhost:3002/api
# VITE_WS_URL=ws://localhost:3002
# For production/domain deployment, use relative URLs (default):
VITE_API_URL=/drones/api
VITE_WS_URL=/drones

View File

@@ -87,8 +87,8 @@ services:
context: ./client
dockerfile: Dockerfile
args:
VITE_API_URL: http://localhost:3002/api
VITE_WS_URL: ws://localhost:3002
VITE_API_URL: ${VITE_API_URL:-/drones/api}
VITE_WS_URL: ${VITE_WS_URL:-/drones}
NODE_ENV: production
container_name: drone-detection-frontend
restart: unless-stopped