honojs / honox

HonoX - Hono based meta framework
https://hono.dev
MIT License
1.17k stars 35 forks source link

Add documentation on how to use HonoX outside of Cloudflare #197

Open 3w36zj6 opened 3 weeks ago

3w36zj6 commented 3 weeks ago

What is the feature you are proposing?

Projects created by selecting x-basic with npm create hono@latest support Cloudflare Workers & Pages, but it would be beneficial to have documentation on how to adapt the code to run on other platforms.

chrisyalamov commented 3 weeks ago

I don't think this is currently possible as the Vite plugin built into HonoX is only adapted for Cloudflare Pages.

There was some discussion on this in #42 where someone built their own plugin. If not, I'm not sure if it would be helpful, but Cloudflare have open-sourced the runtime for their Workers (https://github.com/cloudflare/workerd) so if you're looking to self-host, that might be relevant.

yusukebe commented 3 weeks ago

Hi.

You can run the HonoX app on other runtimes like Node.js and Bun instead of Cloudflare/workerd. To do it, you must build your app with the proper Vite settings. It would be good if the setting were written in the README.