CNAME record results in DNS 1001 error on Cloudflare Pages

I recently bought a domain from Namecheap. And I created a CNAME in Namecheap to point to a Cloudflare Pages address ( .pages.dev ). But when I try to access the site with my name domain name, it results in a DNS 1001 error from Cloudflare.

It sounds like you did not set that Pages site up with a Custom Domain.

I’ve not seen someone do this with external DNS. If Pages doesn’t let you set up the Custom Domain for your Namecheap domain, you’ll have to go with the regular setup here where you +Add Site, then change your domain to use Cloudflare name servers.