fix(web): allow profiles without native bash env

This commit is contained in:
Tianyi Cui
2026-08-02 01:13:58 +08:00
parent 2309f97a16
commit 52a715d303
2 changed files with 1 additions and 11 deletions

View File

@@ -82,14 +82,6 @@ export function prepareWebRuntimeContext(ctx: Context, sourceRoot: string, mode:
})
}
/**
* Fail a settled Web boot whose composition omitted the managed Bash environment registry.
* @param ctx - settled Web application context.
*/
export function assertWebRuntimeContext(ctx: Context): void {
if (ctx.get('bashEnv') === undefined) throw new Error('dsh web: bashEnv service missing after settled boot')
}
/**
* Serve the browser UI from the shipped config tree. `host`/`port` are passed
* through only when the flag was given; absent, the shipped Web overlay value stands.
@@ -123,7 +115,6 @@ export async function runWeb(
...trustedHosts !== undefined && { trustedHosts },
})
const { ctx, port: boundPort } = await entry.run()
assertWebRuntimeContext(ctx)
const resolvedLocalWebUrl = localWebUrl(ctx)
let exiting = false