How to set R2 Custom Domains with CNAME?

Hello everyone!

I have some trouble with R2 when I am trying to add a custom domain.

It shows that “That domain was not found on your account. Public bucket access supports only domains on your account and managed through Cloudflare DNS.”

I can’t move my domain to Cloudflare because of some policies of the service provider.
Does anyone know the way to set up a custom domain with CNAME?

Hi @user17089

If you don’t have a domain added to your account, you will not be able to create a cname record and have the content served through there, then you would need to use Workers and integrate your R2 bucket there.