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

@@ -152,6 +152,8 @@ services:
NPM_FETCH_TIMEOUT: ${NPM_FETCH_TIMEOUT:-300000}
environment:
VITE_API_BASE: ${VITE_API_BASE:-}
CORS_ORIGINS: '${CORS_ORIGINS:-["http://localhost:5173","http://localhost:3000"]}'
VITE_ALLOWED_HOSTS: ${VITE_ALLOWED_HOSTS:-}
# ports:
# - "${HOST_BIND_IP:-127.0.0.1}:5173:5173"
volumes: