-
Notifications
You must be signed in to change notification settings - Fork 51
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
[suggestion] Add Cloudflare DevServer config to Docs #39
Comments
Ah, yeah. I also think these should be written. Can you write them and create a PR? |
Yeah, I should be able to carve out 30 minutes to put this together |
Now, we can use the new API import honox from 'honox/vite'
import { defineConfig } from 'vite'
import { getPlatformProxy } from 'wrangler'
export default defineConfig(async () => {
const { env, dispose } = await getPlatformProxy()
return {
plugins: [
honox({
devServer: {
env,
plugins: [
{
onServerClose: dispose
}
]
}
})
]
}
}) Below is an example project. Please try it out. If it looks good, write it in the README. |
Happy to throw something in the docs if you are stuck for time @bruceharrison1984 👌 |
Go for it man! I won't have time to swing back to this until next week. |
I've updated the website to explain a new way of using Cloudflare Bindings: https://hono.dev/getting-started/cloudflare-pages#bindings I think we can add the description to HonoX's README like that. |
This was fixed by #113 |
My previous Hono app used the
@hono/vite-dev-server
package to setup local Cloudflare services. HonoX includes this, and it is all configured via thehonox
plugin, but the docs don't make this immediately obvious.The text was updated successfully, but these errors were encountered: