-
Notifications
You must be signed in to change notification settings - Fork 514
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
Pass ctx in preset cloudflare-pages #773
Comments
I just saw this is probably not the ctx but the env. Anyway the cf datastore options should be available |
Since there is no easy way to pass context to an event handler (every additional info given in the adapter gets dropped in unenv/runtime/fetch/call.ts callHandle, when creating req) I would suggest adding: This would make it somewath similar to the context.env version in pages functions. |
Note: This issue should get resolved by #677 |
PS: I think this issue is a duplicate of #391 |
Let's track in #391 then |
@manniL sorry about the confusion but this issue is different from #391 and it hasn't been resolved by #677 I've got confused by the could you please reopen this issue? 🙏 |
in the cloudflare-pages adapter add the CfRequestContext that the onRequest function receives from Cloudflare to the nitroApp localCall so that users can access such context in their nitro application resolves nitrojs#773
in the cloudflare-pages adapter add the CfRequestContext that the onRequest function receives from Cloudflare to the nitroApp localCall so that users can access such context in their nitro application resolves nitrojs#773
in the cloudflare-pages adapter add the CfRequestContext that the onRequest function receives from Cloudflare to the nitroApp localCall so that users can access such context in their nitro application resolves nitrojs#773
Fixed by #1004 |
Describe the feature
In the preset fore cloudflare-pages there already seems to be a TODO for adding the cf context in the File was originally implemented by @DaniFoldi
This would really help me with my current nuxt projekt where i really need a KV binding.
In the normal cloudflare-functions adapter this is already possible tho our whole project is based on cloudflare-pages.
Additional information
The text was updated successfully, but these errors were encountered: