WinterCG fetch handler #9220
xantiagoma
started this conversation in
Proposals
Replies: 1 comment 1 reply
-
The This one is used by the Express package to run as a route in Express, also by the Cloudflare Pages package, and other official packages. This is because Remix is designed to be a request handler in any http server, and it’s what enables things like remix-hono which is an adapter to run Remix as a route in Hono It’s also possible to use it with Bun as you can read more in https://sergiodxa.com/tutorials/build-an-app-with-remix-and-bun. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Guys,
It would be great if Remix has a WinterCG compatible fetchHandler method
remixApp.fetch(request: Resquet): Response
or as an utility in a new package, similar to:I saw there's already one for express / node http-server using
createRequestHandler
as is used here https://sergiodxa.com/tutorials/run-next-and-remix-on-the-same-server, having the fetch handler would make possible to integrate Remix as sub-routes of Elysia / Hono / Hattip / any WinterCG server
Examples:
Also It could be used for testing purposes similar to what is shown on ElysiaJS Testing
Beta Was this translation helpful? Give feedback.
All reactions