Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3w36zj6 opened this issue Jun 29, 2024 · 2 comments
Open

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

3w36zj6 opened this issue Jun 29, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@3w36zj6
Copy link

3w36zj6 commented Jun 29, 2024

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.

@3w36zj6 3w36zj6 added the enhancement New feature or request label Jun 29, 2024
@chrisyalamov
Copy link

chrisyalamov commented Jun 30, 2024

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
Copy link
Member

yusukebe commented Jul 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants