-
Sign up and sign in to Cloudflare https://dash.cloudflare.com/sign-up.
-
In your Cloudflare dashboard, select the
Domain Registration > Register Domainstab. -
Search for your favorite domain and purchase it. In my case, I purchased the domain https://nivethan.me/ for my portfolio.
-
Sign in to Vercel and go to your dashboard, where you can see all your projects in the
Overviewtab. -
Click on a project and on the top right, select
Domains. -
Type your domain in the text box, e.g.,
nivethan.me, and clickAdd. -
Select the recommended option:
Add www.nivethan.me and redirect nivethan.me to it. -
Vercel will show an invalid configuration under your domains and display the relevant A record IP under
nivethan.meand a CNAME IP underwww.nivethan.me. These need to be set up on Cloudflare to make it work. -
Go to the Cloudflare dashboard and select
Domain Registration > Manage Domainstab. -
Your domain will be listed in a table. Select
Manage. -
Look for
Update DNS configurationunder the quick actions. -
Add an A record (turn off proxy):
Type Name(required) IPv4 address(required) Proxy status A @ 89.28.116 off -
Add a CNAME record (turn off proxy):
Type Name(required) IPv4 address(required) Proxy status CNAME www cname.vercel-dns.com off -
You're done! Visit your domain, and you should now see your project live and accessible.
Last active
November 30, 2025 21:25
-
-
Save nivethan-me/a56f18b3ffbad04bf5f35085972ceb4d to your computer and use it in GitHub Desktop.
Add Cloudflare Custom Domain to Vercel
I also had to add the NS onto cloudflare for it to work. It took forever to find out that it was in the same place that you set the A Record and CNAME record.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, the IP v4 address is in your settings/Domains page in Vercel (I think, going off memory here.)