Is the use of serve from the registry a Must
In the Hono setup, i wanted to ask if its a must to use the serve from the registry to serve app ? I want to integrate mono with sveltekit and have the sveltekit server serve hono via an API route as shown here https://dev.to/bop/using-hono-with-sveltekit-full-type-safety-with-rpc-2h7
DEV Community
Using Hono with SvelteKit - Full type-safety with RPC
Introduction Why Hono? Setup The Backend RPC Building Our Application Why not Elysia with...
3 Replies
no – we provide a default serve because setting up websockets + mounting ther egistry is a bit tricky
if you're not using the rivetkit client in the frontend, then you can just use use
const { client } = registry.server();
if you are using rivetkit frontend, you can use const { client, hono } = registry.server(); youApp.route("/registry", hono);What about next.js?
Next.js works, but we don't have an example project set up yet.