/Knowledge/sources/honojs__hono/llms-full/ssg-helper-middleware-isssgcontext--d66ec00ecb8b.md
SSG Helper: Middleware > isSSGContext - hono-docs
SSG Helper: Middleware isSSGContext Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt isssgcontext Summa...
SSG Helper: Middleware > isSSGContext
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#isssgcontext
Summary
isSSGContext is a helper function that returns true if the current application is running within the SSG context triggered by toSSG. ```ts app.get('/page', (c) => { if (isSSGContext(c)) { return c.text('This is generated by SSG') }...
Content
isSSGContext is a helper function that returns true if the current application is running within the SSG context triggered by toSSG.
app.get('/page', (c) => {
if (isSSGContext(c)) {
return c.text('This is generated by SSG')
}
return c.text('This is served dynamically')
})
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#isssgcontext",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / SSG Helper > Middleware > isSSGContext",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 752,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "SSG Helper: Middleware > isSSGContext",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}