Pointing cloudflare domain to new pages project results in host error (522)

I have two domains and one Cloudflare Pages project. Previously, the Pages project was using one domain (Domain A), but I want to switch it to another domain (Domain B).
I updated the DNS settings under Domain B, adding the following CNAME record:
CNAME
[Domain B] → [Project].pages.dev
Proxied
CNAME
[Domain B] → [Project].pages.dev
Proxied
After making this change, I noticed the update took effect because the domain now leads to an error instead of the previous project. However, visiting the domain now results in a "Connection timed out" (Error 522) message, indicating an issue at the host level.
Previously, the domain pointed to a different Pages project and worked correctly. Now, it does not resolve properly to my current Pages project.
What I’ve tried:
- Confirmed the CNAME record is set correctly under Domain B.
- Verified that the record is proxied through Cloudflare.
- Verified no other record points to anything related to the previous project it was using. Does the fact that it now results in error, rather than the previous project indicate the DNS propagation is done? Its only been 30 minutes or so. How can I resolve this issue and correctly link Domain B to my Cloudflare Pages project?
Thanks. EDIT: resolved. see below.
No description
1 Reply
trk
trkOP4d ago
Resolved. Forgot to also change custom domain inside the pages projects

Did you find this page helpful?