/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-fire-f6a55afe27c9-fire-s0620-c0000.md
fire() - hono-docs
fire() Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt fire Summary ::: warning app.fire() is dep...
fire()
Source evidence: /Sources/raw/honojshono/honojshono.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(...))
})