You built your site on Vercel and you have a .com.np domain. Connecting the two takes a few minutes of setup and then a short wait while DNS updates.
This guide walks through the screens in order, so you can do it once without guessing.
Before you start
You need three things:
- A project already deployed on Vercel (it has a
your-project.vercel.appaddress). - Your .com.np domain, registered at register.com.np.
- A DNS provider where you can add records. A .com.np domain points to nameservers, so many people use a free DNS service such as Cloudflare and manage the records there.
Add the domain in Vercel
- Open your project on Vercel.
- Go to Settings → Domains.
- Type your domain, for example
example.com.np, and press Add. - Vercel usually suggests adding
www.example.com.nptoo and redirecting one to the other. Accept the suggestion.
Vercel now shows the DNS records it needs. Keep this tab open.
Point your DNS records
In your DNS provider, add the records exactly as Vercel lists them. It is normally:
| Type | Name | Value |
|---|---|---|
| A | @ | the IP address Vercel shows |
| CNAME | www | the CNAME target Vercel shows |
Copy the values from your own Vercel screen rather than from a blog post, because Vercel sometimes gives each project its own values.
If you use Cloudflare, set these two records to DNS only (grey cloud) at first. That way Vercel can issue its SSL certificate without problems.
Wait for SSL and test
Once the records update, Vercel checks them and issues a free SSL certificate on its own. The Domains page shows a green tick when everything is ready.
- Updates are often done in minutes, but DNS can take a few hours to spread.
- Open your domain in a private browser window to avoid old cached results.
- Check both
example.com.npandwww.example.com.np, and make sure one redirects to the other.
If it doesn't work
- "Invalid configuration" in Vercel: a record is wrong or still updating. Compare each value character by character.
- Site loads without the padlock: wait a little longer for the certificate, then refresh.
- Nothing changes after a day: confirm the domain's nameservers at register.com.np point to the DNS provider where you added the records.