Host a Page and r2 files on the same domain?
Hello! I have an r2 bucket with a distribution of my desktop app that I'm working on. So i want r2 to be the place where it lives. In r2 there is also a download.html that contains some logic to show the user a download button for the proper host (i.e. mac intel vs mac apple chip).
I can attach my domain to r2 and that works.
But now I uploaded my index.html to cloudlfare pages, and i can't attach my domain to it because it's already taken.
What's the best way at resolving this?
2 Replies
You first need to connect a subdomain to your bucket.
Then, you can use the Cloud Connector feature to steer some of your root domain's traffic to the bucket, without your customers ever seeing the subdomain.
Or you can just put the bucket on a subdomain like
static.example.com
thanks. maybe ill do that instead. it seems easier... and it's for hosting static assets so I guess it makes sense. As long as "static" doesn't get picked up by search engines lol