Allow CNAME to Pages without Custom Domain
Can I point a domain via CNAME to a
*.pages.dev
without having the domain set in the Pages dashboard as a Custom Domain? (I would like to allow my users to customize a single page in my App with their own domain)5 Replies
As of my initial tests is not working, and will result in a "Connection timed out"
Due to the way that Pages works, each extra domain needs to be a custom domain
And is there an api for that? An also does the domains need to be in the Cloudflare dns? 🤔
Yes there an API. If you search Pages Custom Domain it should show in the docs. No it doesn’t need to be on Cloudflare.
There is also a limit of the amount of custom domains. https://developers.cloudflare.com/pages/platform/limits/#custom-domains
Cloudflare Docs
Limits · Cloudflare Pages docs
Below are limits observed by the Cloudflare Free plan. For more details on removing these limits, refer to the Cloudflare plans ↗ page.