From e6e885dd5ac6a1e9c6b5378439cf237a1318d59d Mon Sep 17 00:00:00 2001 From: root Date: Mon, 20 Jul 2026 23:43:06 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=BA=20v03=20Cloud=20Web=20?= =?UTF-8?q?=E6=8C=87=E5=AE=9A=E5=8F=AF=E7=94=A8=20npm=20registry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/deploy.yaml | 2 ++ scripts/gitops-render.test.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/deploy/deploy.yaml b/deploy/deploy.yaml index ce61e371..c9c068fa 100644 --- a/deploy/deploy.yaml +++ b/deploy/deploy.yaml @@ -763,6 +763,8 @@ lanes: - deploy/runtime/boot/opencode-provider-proxy.sh - tools/src/hwlab-cli/trace-renderer.ts env: + BUN_CONFIG_REGISTRY: https://registry.npmjs.org/ + npm_config_registry: https://registry.npmjs.org/ HWLAB_CLOUD_WEB_DISPLAY_TIME_ZONE: Asia/Shanghai HWLAB_CLOUD_WEB_DISPLAY_TIME_LOCALE: zh-CN HWLAB_CLOUD_WEB_DISPLAY_TIME_LABEL: 北京时间 diff --git a/scripts/gitops-render.test.ts b/scripts/gitops-render.test.ts index 033f5e18..90bf82fd 100644 --- a/scripts/gitops-render.test.ts +++ b/scripts/gitops-render.test.ts @@ -751,6 +751,8 @@ test("v03 render keeps node identity as data instead of generated structure", as successThreshold: 1 }); const cloudWebEnv = new Map((cloudWebContainer?.env ?? []).map((entry) => [entry.name, entry.value])); + assert.equal(cloudWebEnv.get("BUN_CONFIG_REGISTRY"), "https://registry.npmjs.org/"); + assert.equal(cloudWebEnv.get("npm_config_registry"), "https://registry.npmjs.org/"); assert.equal(cloudWebEnv.get("HWLAB_WORKBENCH_LIVE_KAFKA_SSE_ENABLED"), "true"); assert.equal(cloudWebEnv.get("HWLAB_WORKBENCH_KAFKA_REFRESH_REPLAY_ENABLED"), "true"); assert.equal(cloudWebEnv.get("HWLAB_WORKBENCH_PROJECTION_REALTIME_ENABLED"), "false");