Configuring Cloudflare Domains with Vercel
Published ....
Last modified ....
Share this post on BlueskySee discussion on Bluesky
I've been using Cloudflare to register new domain names a few times in the past few weeks. I've also been using Vercel to host my projects. I've found that the process of configuring a domain name registered with Cloudflare to work with Vercel is a bit tricky. Here's how I did it.
Step 1: Register the domain with Cloudflare
Visit the Cloudflare domain registration website to buy your new domain.
Step 2: Add the domain to Vercel
If you don't already have a project setup on Vercel, do that first by visiting vercel.com and starting a new project. Once you have a project setup, visit the project settings and add the domain to the project.
Step 3: Configure the domain on Cloudflare
This part is fairly straight forward, the domain settings page for your project on Vercel will outline the records you will need to add to Cloudflare. Add the records to Cloudflare and wait for them to propagate (in my experience this has been effectively within a minute or two).