Interface: FastifyKitaHtmlOptions

Estimated reading time: less than 1 minute

Options for @kitajs/fastify-html-plugin plugin.

Properties

autoDoctype

autoDoctype: boolean

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

// With autoDoctype: true you can just return the html
app.get('/', () => <html></html>)

// With autoDoctype: false you must use rep.html
app.get('/', (req, rep) => rep.html(<html></html>)

Default

true