Question about Pages, Workers, and Functions

Hello, I'm trying to wrap my head around how these products integrate. I have pages website and I want to be able to pull data from a R2 bucket in order to be displayed on the Pages site. What is the correct way of doing this? Creating a worker that handles the R2 bucket access and then having the pages site access via api? Or creating a function that access the bucket and forgo the worker? When the worker or page has an R2 binding, I assume secrets are not necessary?
2 Replies
kian
kian11mo ago
If you're not trying to authenticate access to R2, just add a public domain to your R2 bucket and access it that way. It's cheaper.
Para
ParaOP11mo ago
What should I do if I do want to authenticate?
Want results from more Discord servers?
Add your server