How can I setup DNS from my subdomain.mydomain.com to subdomain.mydomain.pages.dev?

I have set up the DNS record like this:

| CNAME | demo | demo.<mydomain>.pages.dev | Proxied |

When I open demo.<mydomain>.pages.dev
  • it is working fine, but demo.<mydomain>.com shows 522 error.
    Waited for 2h, hard refreshed, tried from the phone - nothing changes.
    What am I doing wrong?
image.png
Was this page helpful?