Fetching Objects in a Cloudflare R2 Bucket on Astro

I'm trying to allow people to go to https://example.com/assets/asset.png and for the server to fetch the object asset.png from the bucket. I am able to grab the object but I'm having trouble responding to the request with the object. I would use s3 api, but I might aswell use the wrangler api since im already using it for d1. Any help would be much appreciated!
0 Replies
No replies yetBe the first to reply to this messageJoin