Connect pages directly with R2

Hello, I'm interested to use R2 to store frequently changing data and fetch them on the client side in a project hosted on a cloudflare pages. I read about using bindings to connect R2 with Cloudflare pages but I didn't understand if I still need a worker in the middle.
1 Reply
Radoš
Radoš4w ago
No, you can use bindings directly from functions or _worker. If you use something like Astro, you can use it in /api and in actions instead.
Want results from more Discord servers?
Add your server