Interface: ExpressKitaHtmlOptions

Estimated reading time: less than 1 minute

Options for @kitajs/express-html-plugin middleware.

Properties

autoDoctype?

optional autoDoctype?: boolean;

Whether to automatically add <!doctype html> to a response starting with , if not found.

Default

true

autoSuspense?

optional autoSuspense?: boolean;

Whether to provide the request ID to AutoSuspense components automatically.

When disableRequestId is also enabled, earlier middleware must assign req.id. Regular Suspense components with an explicit rid do not require this option.

Default

false

disableRequestId?

optional disableRequestId?: boolean;

Whether the middleware should avoid assigning req.id.

Disable this if another middleware already owns request ids. When disabled, you must ensure req.id is available before using Suspense rid={req.id}.

Default

false