/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-default-plugin-97f68bd8d909-default-plugin-s0756-c0000.md
Default Plugin - hono-docs
Default Plugin Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt default plugin Summary By default,...
Default Plugin
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#default-plugin
Summary
By default, toSSG uses defaultPlugin which skips non-200 status responses (like redirects, errors, or 404s). This prevents generating files for unsuccessful responses. ```ts import { toSSG, defaultPlugin } from 'hono/ssg' // defaultP...
Content
By default, toSSG uses defaultPlugin which skips non-200 status responses (like redirects, errors, or 404s). This prevents generating files for unsuccessful responses.
import { toSSG, defaultPlugin } from 'hono/ssg'
// defaultPlugin is automatically applied when no plugins specified
toSSG(app, fs)
// Equivalent to:
toSSG(app, fs, { plugins: [defaultPlugin] })If you specify custom plugins, defaultPlugin is not automatically included. To keep the default behavior while adding custom plugins, explicitly include it:
toSSG(app, fs, {
plugins: [defaultPlugin, myCustomPlugin],
})