When I moved this site to Cloudflare Pages, the simplest way to connect my domain was to let Cloudflare manage its DNS, because many registrars can't point a bare domain at a hosted site. The general steps:
1. Deploy the built site to a Pages project.
2. Add the domain to Cloudflare on the free plan. It gives you two nameservers.
3. At your registrar, replace the existing nameservers with those two.
4. Wait until Cloudflare shows the domain as active, then add the domain under the Pages project's custom domains.
My first try returned a Cloudflare 522 timeout. The cause was a leftover DNS record still pointing at my old host. After I deleted the old records and added the custom domain again, Cloudflare created the right record and the site came up. If you see a 522 after a move, check for old records first.