I’m having trouble with CNAME flattening and Cloudflare pages. I have a Cloudflare pages project, and I’d like to be able to automate the process of pointing domains to the project.
I used the api to add a domain, and create two dns records. One CNAME at the root to the cloudflare pages url, and one cname for www to the root domain. I seem to always get a timeout error.
Is it possible to point a domain to a cloudflare pages project, solely through the cloudflare api? There’s not a endpoint to add a custom domain to a cloudflare pages project so what are my options?