/Knowledge/sources/honojs__hono/llms-full/app-hono-fire--d6f47d881e3b.md
App - Hono: fire() - hono-docs
App Hono: fire() Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt fire Summary ::: warning app.fire() i...
App - Hono: fire()
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#fire
Summary
::: warning app.fire() is deprecated. Use fire() from hono/service-worker instead. See the Service Worker documentation for details. ::: app.fire() automatically adds a global fetch e...
Content
::: warning
app.fire() is deprecated. Use fire() from hono/service-worker instead. See the Service Worker documentation for details.
:::
app.fire() automatically adds a global fetch event listener.
This can be useful for environments that adhere to the Service Worker API, such as non-ES module Cloudflare Workers.
app.fire() executes the following for you:
addEventListener('fetch', (event: FetchEventLike): void => {
event.respondWith(this.dispatch(...))
})
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#fire",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / App - Hono > fire()",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 620,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "App - Hono: fire()",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}