-
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.
-
-
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?
89.28.116
is the IP address same for everyone ?
No, the IP v4 address is in your settings/Domains page in Vercel (I think, going off memory here.)
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.
Worked for me, thank you!