This commit is contained in:
imccyu
2026-07-31 02:29:05 +08:00
parent c92a6c3b76
commit 2dab9667f4
2 changed files with 2 additions and 4 deletions

View File

@@ -569,8 +569,6 @@ export interface Config {
host: '127.0.0.1' | '0.0.0.0'
/** Listen port; zero requests an OS-assigned port. */
port: number
/** EADDRINUSE handling: fail immediately or try consecutive ports through 65535. */
portConflict: 'fail' | 'increment'
/** Absolute path of index.html inside the static root (dist location is workspace knowledge of the app). */
distIndex: string
}

View File

@@ -739,7 +739,7 @@ Source: [`packages/goal/goal/src/index.ts:197`](../../packages/goal/goal/src/ind
## `ctx.httpServer` — `HttpServerService`
The web-shape HTTP carrier service. Activation listens immediately (route registration order carries no request-facing semantics: named routes are composed to be disjoint, and the static dist fallback answers anything not yet claimed during the boot window). Listen conflict handling follows the explicit config policy; every unhandled listen failure throws out of init — a FAILED fiber the boot's activation audit reports.
The web-shape HTTP carrier service. Activation listens immediately (route registration order carries no request-facing semantics: named routes are composed to be disjoint, and the static dist fallback answers anything not yet claimed during the boot window). A listen failure throws out of init — a FAILED fiber the boot's fail-loud sweep reports.
```ts cordis-catalog
/**
@@ -759,7 +759,7 @@ register(route: WebRoute): () => void
tapIndex(transform: (html: string) => string): () => void
```
Source: [`packages/host/webserver/src/index.ts:58`](../../packages/host/webserver/src/index.ts)
Source: [`packages/host/webserver/src/index.ts:55`](../../packages/host/webserver/src/index.ts)
## `ctx.invariants` — `InvariantService`