/Knowledge/sources/honojs__hono/llms-full/ssg-helper-middleware-onlyssg--7c7e1ef1d362.md
SSG Helper: Middleware > onlySSG - hono-docs
SSG Helper: Middleware onlySSG Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt onlyssg Summary Routes...
SSG Helper: Middleware > onlySSG
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#onlyssg
Summary
Routes with the onlySSG middleware set will be overridden by c.notFound() after toSSG execution. ts app.get('/static-page', onlySSG(), (c) => c.html( Welcome to my site ))
Content
Routes with the onlySSG middleware set will be overridden by c.notFound() after toSSG execution.
app.get('/static-page', onlySSG(), (c) => c.html(<h1>Welcome to my site</h1>))
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#onlyssg",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / SSG Helper > Middleware > onlySSG",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 754,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "SSG Helper: Middleware > onlySSG",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}