How to get a Hono app to respond to a Cloudflare Worker fetch event? #1750
Closed
andyjessop
started this conversation in
General
Replies: 1 comment
-
|
In answer to my own question, it's: async function handleFetch(
request: Request,
env: Env,
context: ExecutionContext,
): Promise<unknown> {
return app.fetch(request, env, context);
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a Cloudflare Worker that has both a Hono app, and also some other routes not handled by Hono - how can I delegate certain routes to be handled by the Hono app?
E.g.
Beta Was this translation helpful? Give feedback.
All reactions