API URL was not taken from environment after docker container and npm was build
CORS prevented from loading
This commit is contained in:
@@ -24,13 +24,17 @@ services:
|
||||
build:
|
||||
context: ../frontend
|
||||
dockerfile: ../docker/Dockerfile.frontend
|
||||
args:
|
||||
VITE_API_URL: ${API_URL:-https://bamort.trokan.de:8180}
|
||||
VITE_BASE_URL: ${BASE_URL:-https://bamort.trokan.de}
|
||||
VITE_API_PORT: ${API_PORT:-8180}
|
||||
container_name: bamort-frontend
|
||||
ports:
|
||||
- "8181:80"
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- VITE_API_URL=${API_URL:-http://bamort.trokan.de:8180}
|
||||
- VITE_BASE_URL=${BASE_URL:-http://bamort.trokan.de}
|
||||
- VITE_API_URL=${API_URL:-https://bamort.trokan.de:8180}
|
||||
- VITE_BASE_URL=${BASE_URL:-https://bamort.trokan.de}
|
||||
- VITE_API_PORT=${API_PORT:-8180}
|
||||
depends_on:
|
||||
- backend
|
||||
|
||||
Reference in New Issue
Block a user