Add custom subdomains automatically without limit

What is the name of the domain?

What is the issue you’re encountering

I want to make an automatic system to add custom user chosen subdomains to my site. They would all connect to the same r2 bucket but there are link limits on r2 buckets and dns record limits. Is it possible to do this?

What steps have you taken to resolve the issue?

i tried to add a cname pointing to a different subdomain that has the files it just gave me an error 1014 (yes i know it is a different domain in the screenshot i tried it on multiple)

Screenshot of the error


It’d be much easier to point them to a Worker that accesses your R2 bucket:
https://developers.cloudflare.com/r2/api/workers/workers-api-usage/#3-bind-your-bucket-to-a-worker

While there’s a 50 Custom Domain limit on R2 buckets, this Worker approach raises the limit to roughly 1000, due to routing limits:
https://developers.cloudflare.com/workers/platform/limits/#number-of-routes-per-zone

Beyond 1000, you’d have to use Workers for Platforms, as mentioned in the doc above.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.