Wire Vite allowed hosts to env for Docker frontend

This commit is contained in:
2026-03-02 15:37:39 -03:00
parent b86223f943
commit 0acce2e260
5 changed files with 86 additions and 7 deletions

View File

@@ -40,6 +40,7 @@ PROVIDER_BASE_URL_ALLOWLIST=[]
PUBLIC_BASE_URL=http://localhost:8000
CORS_ORIGINS=["http://localhost:5173","http://localhost:3000"]
VITE_API_BASE=
VITE_ALLOWED_HOSTS=
# Optional frontend build network and npm fetch tuning:
DOCKER_BUILD_NETWORK=default
@@ -61,3 +62,4 @@ NPM_FETCH_TIMEOUT=300000
# PUBLIC_BASE_URL=https://api.example.com
# CORS_ORIGINS=["https://app.example.com"]
# VITE_API_BASE=https://api.example.com/api/v1
# VITE_ALLOWED_HOSTS=app.example.com