-
Sign up and sign in to Cloudflare https://dash.cloudflare.com/sign-up.
-
In your Cloudflare dashboard, select the
Domain Registration > Register Domains
tab. -
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
Overview
tab. -
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.me
and 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 Domains
tab. -
Your domain will be listed in a table. Select
Manage
. -
Look for
Update DNS configuration
under 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.
-
-
Save nivethan-me/a56f18b3ffbad04bf5f35085972ceb4d to your computer and use it in GitHub Desktop.
Super helpful. Thanks!
how do I add nameserver to vercel (NS chloe.ns.cloudflare.com)?
This is supposed to be added to your DNS service provider (where you bought your domain name).
I had this pulled up ready to go through it but when I entered the domain on vercel they have an option to set it up automatically for you. Not sure of the consequences
I had this pulled up ready to go through it but when I entered the domain on vercel they have an option to set it up automatically for you. Not sure of the consequences
Did you get the domain name from vercel?
I had this pulled up ready to go through it but when I entered the domain on vercel they have an option to set it up automatically for you. Not sure of the consequences
Did you get the domain name from vercel?
Worked for me, thank you!