fix(hwlab): use domestic npm registry for node lanes (#825)
Co-authored-by: Codex <codex@noreply.local>
This commit is contained in:
@@ -442,8 +442,8 @@ networkProfiles:
|
||||
- 127.0.0.1
|
||||
- ::1
|
||||
- host.docker.internal
|
||||
- registry.npmjs.org
|
||||
- .registry.npmjs.org
|
||||
- registry.npmmirror.com
|
||||
- cdn.npmmirror.com
|
||||
node-local-vpn:
|
||||
proxy:
|
||||
http: http://127.0.0.1:10808
|
||||
@@ -484,6 +484,8 @@ networkProfiles:
|
||||
- .debian.org
|
||||
- goproxy.cn
|
||||
- .goproxy.cn
|
||||
- registry.npmmirror.com
|
||||
- cdn.npmmirror.com
|
||||
- .svc
|
||||
- .svc.cluster.local
|
||||
- .cluster.local
|
||||
@@ -511,6 +513,8 @@ networkProfiles:
|
||||
- .debian.org
|
||||
- goproxy.cn
|
||||
- .goproxy.cn
|
||||
- registry.npmmirror.com
|
||||
- cdn.npmmirror.com
|
||||
- .svc
|
||||
- .svc.cluster.local
|
||||
- .cluster.local
|
||||
@@ -522,7 +526,7 @@ downloadProfiles:
|
||||
retries: 3
|
||||
timeoutSeconds: 240
|
||||
npm:
|
||||
registry: https://registry.npmjs.org/
|
||||
registry: https://registry.npmmirror.com/
|
||||
retries: 3
|
||||
fetchTimeoutSeconds: 120
|
||||
pip:
|
||||
@@ -542,7 +546,7 @@ downloadProfiles:
|
||||
retries: 3
|
||||
timeoutSeconds: 60
|
||||
npm:
|
||||
registry: https://registry.npmjs.org/
|
||||
registry: https://registry.npmmirror.com/
|
||||
retries: 3
|
||||
fetchTimeoutSeconds: 120
|
||||
pip:
|
||||
|
||||
@@ -4715,6 +4715,8 @@ function yamlDependencyInstallScript(registry: string, fetchTimeoutSeconds: numb
|
||||
" if [ -n \"$yaml_https_proxy\" ]; then export HTTPS_PROXY=\"$yaml_https_proxy\" https_proxy=\"$yaml_https_proxy\" npm_config_https_proxy=\"$yaml_https_proxy\"; fi",
|
||||
" if [ -n \"$yaml_all_proxy\" ]; then export ALL_PROXY=\"$yaml_all_proxy\" all_proxy=\"$yaml_all_proxy\"; fi",
|
||||
" export npm_config_registry=\"$yaml_registry\"",
|
||||
" export BUN_CONFIG_REGISTRY=\"$yaml_registry\"",
|
||||
" export npm_config_noproxy=\"${NO_PROXY:-${no_proxy:-}}\"",
|
||||
" export npm_config_fetch_retries=\"$yaml_fetch_retries\"",
|
||||
" export npm_config_fetch_retry_mintimeout=2000",
|
||||
" export npm_config_fetch_retry_maxtimeout=16000",
|
||||
|
||||
Reference in New Issue
Block a user