diff --git a/config/hwlab-node-lanes.yaml b/config/hwlab-node-lanes.yaml index a8f859af..14e4033c 100644 --- a/config/hwlab-node-lanes.yaml +++ b/config/hwlab-node-lanes.yaml @@ -197,7 +197,7 @@ lanes: bindHost: 0.0.0.0 probeHost: 127.0.0.1 port: 5174 - runtimeConfig: + runtimeConfig: &hwlabV03NativeCloudWebRuntimeConfig displayTime: timeZone: Asia/Shanghai locale: zh-CN @@ -259,6 +259,7 @@ lanes: bindHost: 0.0.0.0 probeHost: 127.0.0.1 port: 5175 + runtimeConfig: *hwlabV03NativeCloudWebRuntimeConfig accessProfile: id: hwpod-native-l1 allowedNavIds: diff --git a/scripts/src/hwlab-native-development.test.ts b/scripts/src/hwlab-native-development.test.ts index d7143be1..4a204f36 100644 --- a/scripts/src/hwlab-native-development.test.ts +++ b/scripts/src/hwlab-native-development.test.ts @@ -69,6 +69,8 @@ test("L1 HWPOD spec registry resolves PostgreSQL authority and frozen built-ins expect(native!.healthTimeoutMs).toBe(6000); expect(native!.web.accessProfile).toEqual({ id: "hwpod-native-l1", allowedNavIds: ["admin.hwpodGroups"], startPath: "/hwpods/devices" }); const env = hwlabHwpodNativeDevelopmentEnvironment(native!); + expect(JSON.parse(env.HWPOD_WEB_RUNTIME_CONFIG!)).toEqual(native!.web.runtimeConfig); + expect(native!.web.runtimeConfig).toEqual(hwlabRuntimeLaneSpecForNode("v03", "NC01").nativeDevelopment!.workbench.web.runtimeConfig); expect(JSON.parse(env.HWPOD_WEB_ACCESS_PROFILE_JSON!)).toEqual(native!.web.accessProfile); expect(native!.specRegistry.builtInConfigRefs).toHaveLength(1); const resolved = resolveConfigRef(native!.specRegistry.builtInConfigRefs[0], "HWPOD built-in spec"); diff --git a/scripts/src/hwlab-native-development.ts b/scripts/src/hwlab-native-development.ts index 4817c577..558c9327 100644 --- a/scripts/src/hwlab-native-development.ts +++ b/scripts/src/hwlab-native-development.ts @@ -342,6 +342,7 @@ export function hwlabHwpodNativeDevelopmentEnvironment(native: NonNullable { const raw = asRecord(value, path); const api = asRecord(raw.api, `${path}.api`);