-
Notifications
You must be signed in to change notification settings - Fork 223
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
Documentation/example of how to run h3 in a worker environment #39
Comments
Hi @JamieCurnow. It is not straightforward at the moment without using nuxt nitro but would definitely work on docs to explain usage without nuxt nitro. In the meantime, here are overall steps hopefully can help you to implement:
|
@pi0 Thank you for pointing me in the right direction! You're right - it's not straightforward at the moment 😅 I managed to figure it out though and made a little helper package that wraps around h3's createApp and exposes a function to handle the fetch event from Cloudflare. In case anyone else is trying to do this too check out: Needs a good test, but is working for my use case. Suggestions/questions/pull requests are welcome as always :) |
@JamieCurnow thanks for this, helped me out a lot! |
@pi0 can we expect docs anytime soon on this? |
Pending until we have full Response/Request support #401 |
Workers support with h3 itself will be much more straight forward with upcoming fetch adapter. Please track via #458 |
I'm trying to get started with h3 in a Cloudflare worker - are there any examples of how to get started with h3 in workers?
The text was updated successfully, but these errors were encountered: