Has anyone been able to bind an R2 in

Has anyone been able to bind an R2 in cloudflare pages analog framework? I followed the instructions here: https://developers.cloudflare.com/pages/framework-guides/deploy-an-analog-site/#bindings, added my R2 in my wrangler.toml (and I can see it is now part of my pages project), but the context does not have a context.cloudflare.env...in fact .env is null.
4 Replies
smattmyers
smattmyers5mo ago
I figured out that bindings work in Analog API routes on GET requests only...? For some reason cloudflare.env is not injected into the context on a POST request with the default configuration. @Community Champion any ideas on the above ^^ ?
itsmatteomanf
itsmatteomanf5mo ago
?pings
Flare
Flare5mo ago
Please do not ping community members for non-moderation reasons. Doing so will not solve your issue faster and will make people less likely to want to help you.
Walshy
Walshy5mo ago
sounds like you should file a bug with Analog
Want results from more Discord servers?
Add your server