Skip to content

Function: serveClientSurface()

serveClientSurface(app, options): Promise<ClientSurface>

Defined in: packages/aiui-util/src/web-surface.ts:101

Mount a client surface on app under options.prefix, choosing Vite (dev) or static serving (prod). Returns the HMR upgrade handler + disposer to compose into the sidecar's MountedSidecar.

Parameters

app

Express

options

ServeClientSurfaceOptions

Returns

Promise<ClientSurface>