Cookie
CDCloudflare Developers
•Created by Cookie on 12/10/2023 in #pages-help
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!1 replies