1. Add new domain from Vercel

Go to Settings and click Add.

Click Add Domain

Add your domain name (i.e. example.com) and select Production as the Environment. Then click Add Domain.

Add Your Domain

Select the Recommended approach which is to add www.example.com and redirect to example.com to it.

Select Recommended

2. Add Vercel to Namecheap

You'll notice that on Vercel, there will be Invalid Configuration for example.com and www.example.com. To fix this you have to add the two records provided by Vercel.

Invalid Configuration

Now navigate to namecheap.com and log in. Either from Dashboard or Domain List, find your custom domain and click Manage.

Manage

Then click on Advanced DNS and add the records provided on the Vercel dashboard. At the end, your page should look like the following.

Add on Namecheap

You'll notice pretty quickly that your Vercel dashboard will say Valid Configuration if everything is set up properly.

Working