콘텐츠로 이동

DevServerOptions

Defined in: core/index.ts:811

Vite-style dev server options used by zntc dev / zntc --serve.

Note: startDevServer() (native NAPI) accepts extra options such as lazyCompilation — see StartDevServerOptions. The zntc dev web CLI runs a separate JS dev server and does not honor those yet (backlog).

optional host?: string | boolean

Defined in: core/index.ts:815

Host to listen on. true means 0.0.0.0, matching Vite. CLI --host overrides this value.


optional open?: boolean

Defined in: core/index.ts:819

Open the served URL in the browser after startup. CLI --open overrides this value.


optional port?: number

Defined in: core/index.ts:813

Port to listen on. CLI --port overrides this value.


optional strictPort?: boolean

Defined in: core/index.ts:817

Exit if the configured port is already in use instead of trying the next port.