Error 522 cloudflare pages/domain


I added my domain to cloudflare, and used cloudflare pages to deploy my project.

I wanted to link my domain to my cloudflare pages, so I created a CNAME record which points to the pages domain, however its not working and keep getting error 522

Not sure whats wrong as ive done the same for other projects and its worked fine

I don’t see that error anymore on your site, but:

You have to add it as a Custom Domain under the Pages Project and it’ll create the CNAME for you as well:

Repeat process for www subdomain as well if you want that to work as well, or use a redirect like Redirect to using Single/Dynamic Redirects using Single/Dynamic Redirects or Redirecting www to domain apex · Cloudflare Pages docs using Bulk Redirects.