R2 bucket updates interfere with DNS records

What is the name of the domain?

What is the error number?


What is the error message?


What is the issue you’re encountering

My R2 bucket had a custom domain added: www.hinterlandweb.com. I decided to change my canonical and removed the www. When I added that domain - hinterlandweb.com - to my R2 bucket it somehow messed my DNS records and removed the hinterlandweb.com ones that already existed and had been working, thus making taking my website down. I would prefer to have a custom domain on my Bucket, but for now I will just stick to the R2-dev one as a work-around. Mind you, everything was working fine until I decided to do this alterations to the bucket.

What steps have you taken to resolve the issue?

  • Remove all custom domains from bucket
  • Remove all connected domains from Pages
  • Allow R2 public access via non-custom domain
  • Reconnect deployed pages to my domain

What feature, service or problem is this related to?

DNS records

What are the steps to reproduce the issue?

  • Add a custom domain to R2 bucket
  • Try access your webpage
  • If you suddenly get a 404 than you are experiencing the same issue

That is to be expected and how it’s supposed to be. You can’t use the same domain for a bucket and a website.

You need to use a subdomain like you did previously with www.

1 Like

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