DNS not resolving

I had a nextjs app on vercel that I moved to an astro project with cloudflare pages. I got the custom domain connected (both root and www show active) to the pages project. The two CNAME records are there. But for some reason when I go to the domain I am getting "404: NOT_FOUND" and "Code: DEPLOYMENT_NOT_FOUND"

Why might I be getting a Vercel error when Cloudflare shows its connected and active?
Was this page helpful?