fix(onboarding): auto-build Control UI assets

This commit is contained in:
Peter Steinberger
2026-01-04 21:53:23 +01:00
parent ff605194ef
commit 0faa200924
5 changed files with 219 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ import {
import { GATEWAY_LAUNCH_AGENT_LABEL } from "../daemon/constants.js";
import { resolveGatewayProgramArguments } from "../daemon/program-args.js";
import { resolveGatewayService } from "../daemon/service.js";
import { ensureControlUiAssetsBuilt } from "../infra/control-ui-assets.js";
import type { RuntimeEnv } from "../runtime.js";
import { defaultRuntime } from "../runtime.js";
import { resolveUserPath, sleep } from "../utils.js";
@@ -618,6 +619,11 @@ export async function runConfigureWizard(
}
}
const controlUiAssets = await ensureControlUiAssetsBuilt(runtime);
if (!controlUiAssets.ok && controlUiAssets.message) {
runtime.error(controlUiAssets.message);
}
note(
(() => {
const bind = nextConfig.gateway?.bind ?? "loopback";