fix: make deploy npm install resilient

This commit is contained in:
Codex
2026-07-01 21:34:39 +08:00
parent 11277be1da
commit 084456536f
2 changed files with 18 additions and 1 deletions

View File

@@ -16,3 +16,10 @@ RUNTIME_CONFIG_DIR=/etc/tiku-saas/runtime-config
RUN_SECURITY_CHECKS=true
RUN_LAUNCH_GATE=true
RESTART_SERVICES=true
# Use https://registry.npmmirror.com on mainland China servers if npmjs times out.
NPM_REGISTRY=https://registry.npmjs.org/
NPM_FETCH_RETRIES=5
NPM_FETCH_RETRY_MINTIMEOUT=20000
NPM_FETCH_RETRY_MAXTIMEOUT=120000
NPM_FETCH_TIMEOUT=300000