General 522 error code

Thanks for clarifying.
You can’t just create the CNAME to the pages project, that’s not enough to make it work. You need to add the Custom Domain within the Pages Project Custom Domains tab: Custom domains · Cloudflare Pages docs
Otherwise, you’ll get a 522, but for a different reason then when your origin wasn’t working. Probably a bit confusing, I would understand.

1 Like