Harden frontend Docker npm fetch resilience

This commit is contained in:
2026-03-02 14:38:26 -03:00
parent b6d470590e
commit c47fc48533
4 changed files with 44 additions and 1 deletions

View File

@@ -41,6 +41,14 @@ PUBLIC_BASE_URL=http://localhost:8000
CORS_ORIGINS=["http://localhost:5173","http://localhost:3000"]
VITE_API_BASE=
# Optional frontend build network and npm fetch tuning:
DOCKER_BUILD_NETWORK=default
NPM_REGISTRY=https://registry.npmjs.org/
NPM_FETCH_RETRIES=5
NPM_FETCH_RETRY_MINTIMEOUT=20000
NPM_FETCH_RETRY_MAXTIMEOUT=120000
NPM_FETCH_TIMEOUT=300000
# Production baseline overrides (set explicitly for live deployments):
# APP_ENV=production
# HOST_BIND_IP=127.0.0.1