Hono
#1391
Replies: 4 comments 4 replies
-
Thanks for organizing this. I talked with Benton in the Hono discord - general channel about similar stuff. https://github.com/b3nten/vono |
Beta Was this translation helpful? Give feedback.
0 replies
-
Love to hear this <3 |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've tested vike-hono-example. I think it works. Please take a look & review it if you guys are interested. 😄 |
Beta Was this translation helpful? Give feedback.
3 replies
-
Thank you! |
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
-
Starting a discussion for building an example integrating Hono with Vite and Vike.
Integrating Vike itself is easy since Vike's middleware doesn't depend on Node.js (see
renderPage()
).So the question boils down to how Hono can be used with Vite.
Prio art: https://github.com/honojs/vite-plugins.
Prior discussion with Hono author and Vite's team: #1239 (reply in thread).
An alternative is to use two different servers: one server for development that uses
@hono/node-server
, and another server for production that doesn't use@hono/node-server
. Both servers use the same Hono middlewares (both user middlewares and third-party middlewares) and share almost all their code: the only difference is that the dev sever uses@hono/node-server
and Vite's development middleware, whereas the production server doesn't.Long-term plan for making Vite's development middelware work everywhere (not only in Node.js):
But it looks like it's going to take a while until that plan is implemented.
Contribution welcome for a Hono + Vite + Vike example.
Beta Was this translation helpful? Give feedback.
All reactions