- Add the domain to Cloudflare (Free), then enter its two nameservers on register.com.np.
- Add both
wwwand the apex to Vercel. Makewwwprimary, and have the apex 308-redirect to it. - In Cloudflare, create exactly the records Vercel shows, all set to DNS only (grey cloud). Vercel then issues the SSL certificate.
- Update canonical URLs and the sitemap, verify the domain in Search Console with a TXT record, and import it into Bing.
I moved this portfolio from a vercel.app address to www.manishagrawal.com.np. Most guides still list Vercel's old IP, or stop once the page loads and skip the parts that get you found. This one covers the whole job, in order.
01Before you start
- An approved
.com.npdomain. These are free from register.com.np, which is run by Mercantile Communications, the.npregistry. You apply with your citizenship or company documents and the application is reviewed by hand. Pick a name tied to you or your business. The rules do change, so check the portal rather than any blog post. - A project deployed on Vercel, in any framework.
- A free Cloudflare account.
digandcurl, which come with macOS and Linux. On Windows, use WSL.
Throughout this guide, replace example.com.np with your own domain.
02Add the domain to Cloudflare
- Choose Add a domain, enter
example.com.np, and pick the Free plan. - Delete any records Cloudflare imports that you didn't create, especially
AorAAAArecords on the apex. They would conflict with Vercel's. - Copy the two nameservers Cloudflare assigns, for example
eva.ns.cloudflare.comandrohin.ns.cloudflare.com. Yours will be different.
03Set nameservers on register.com.np
Sign in, open your domain, and replace the existing nameservers with Cloudflare's: the first as primary, the second as secondary. Save. You can check the change straight away by asking a .np registry server directly, which skips every cache:
dig NS example.com.np @np-ns.npix.net.np +norec +noall +authority +answer
example.com.np. 86400 IN NS eva.ns.cloudflare.com.
example.com.np. 86400 IN NS rohin.ns.cloudflare.com.
If the registry already shows Cloudflare but dig +short NS example.com.np doesn't yet, your resolver is just caching the old answer. The 86400 is the TTL in seconds, so the old nameservers can linger for up to 24 hours. In my case the change showed up within a few hours.
04Add the domain in Vercel
Go to Project → Settings → Domains. Add www.example.com.np, then add example.com.np and choose redirect to www.
Make www the primary domain. Vercel recommends it because a subdomain can use a CNAME, which routes traffic more flexibly than a fixed IP. It also means visitors and search engines all end up at one address: https://www.example.com.np/, reached through a permanent 308 redirect. Both domains show Invalid Configuration until the DNS records exist; that's expected at this point.
05Create the DNS records
Copy the values from your own Vercel Domains page, not from a blog post (this one included). Vercel now hands out new edge IPs and per-project CNAMEs, so the familiar 76.76.21.21 / cname.vercel-dns.com pair is no longer what new projects show. Here is what my project showed, and what is live on this domain:
| Type | Name | Content | Proxy |
|---|---|---|---|
A | @ | 216.198.79.1 | DNS only |
A | @ | 64.29.17.1 | DNS only |
A | www | 216.198.79.1 | DNS only |
A | www | 216.198.79.65 | DNS only |
If Vercel shows you a CNAME for www instead, pointing at a project-specific vercel-dns host, use that. Either form works.
Cloudflare turns the proxy on by default for new A and CNAME records. Click the orange cloud so it turns grey before you save. A proxied record returns Cloudflare's IPs, and Vercel can't verify the domain.
Within minutes, Vercel should show Valid Configuration and issue a Let's Encrypt certificate. Cloudflare's banner saying your records "should be proxied" can be ignored.
06Grey cloud, not orange
Vercel is already a global CDN with its own TLS and DDoS protection. Its docs advise against putting a proxy in front of it: the extra hop adds latency, it hides real visitor traffic from Vercel's firewall, and you end up managing two caches. Use Cloudflare as a fast, free DNS host and nothing more.
If you must proxy (for WAF rules or Workers), set SSL/TLS to Full (strict). Flexible mode causes ERR_TOO_MANY_REDIRECTS: Cloudflare talks to Vercel over HTTP, Vercel redirects to HTTPS, and the loop repeats. New zones default to Automatic SSL/TLS, but check the setting anyway. Turn the proxy on only after Vercel has issued its certificate.
07Verify from the terminal
Browsers cache too much to trust. Run these instead:
# Vercel IPs, not Cloudflare's 104.x / 172.x dig +short example.com.np www.example.com.np # Apex → www with a permanent redirect curl -sI https://example.com.np | grep -iE "^HTTP|^location" HTTP/2 308 location: https://www.example.com.np/ # Valid certificate, served by Vercel echo | openssl s_client -connect www.example.com.np:443 \ -servername www.example.com.np 2>/dev/null | openssl x509 -noout -issuer -enddate curl -sI https://www.example.com.np | grep -i "^server" issuer=C=US, O=Let's Encrypt, ... server: Vercel
Also redirect your old *.vercel.app address to www in the same Domains settings, so the two don't compete as duplicate content.
08Block email spoofing
A domain with no mail records is easy to spoof. If you don't send email from it, add these two TXT records:
| Type | Name | Content |
|---|---|---|
TXT | @ | v=spf1 -all |
TXT | _dmarc | v=DMARC1; p=reject; sp=reject; adkim=s; aspf=s |
If you later set up email on the domain, replace both records with the ones your mail provider gives you.
09Canonical URLs, Google and Bing
Point the site at the new URL
Update every absolute URL to https://www.example.com.np:
rel="canonical"on every pageog:urlandog:image- JSON-LD
- each
<loc>insitemap.xml - the
Sitemap:line inrobots.txt
Then search the codebase for the old domain:
grep -rn "vercel.app" --include="*.html" --include="*.xml" --include="*.txt" .
Google Search Console
- Choose Add property → Domain, not URL prefix, and enter
example.com.np. A Domain property coverswww, the apex and every subdomain. - Add the
google-site-verification=…TXT record to@in Cloudflare, then click Verify. - Submit
https://www.example.com.np/sitemap.xml, then use URL inspection → Request indexing on your homepage.
Google's "verify automatically with Cloudflare" option gives Google permission to edit your DNS. Adding the TXT record yourself takes 30 seconds and grants nothing. Keep that record for as long as you want the property verified.
Bing Webmaster Tools
Bing's index also feeds DuckDuckGo, Yahoo and several AI search tools. In Bing Webmaster Tools, choose Import from Google Search Console. It copies your verification and sitemaps. Then submit your key pages under URL Submission. Reports can take up to 48 hours to appear.
Analytics
Enable Vercel Web Analytics. It uses no cookies, so you need no consent banner. Then check that /_vercel/insights/script.js returns 200 on the new domain.
10Common errors
| Symptom | Cause | Fix |
|---|---|---|
| Vercel shows Invalid Configuration for hours | Nameservers not live yet, or the record is proxied | Check with dig … @np-ns.npix.net.np, and set the record to DNS only |
ERR_TOO_MANY_REDIRECTS | Proxy on, with SSL set to Flexible | Turn the proxy off, or switch to Full (strict) |
Only www or only the apex works | One domain or one record is missing | Add both in Vercel, with a record for each |
| Some visitors see an old page | A leftover A/AAAA record imported by Cloudflare | Delete every apex record that isn't one of Vercel's |
| Certificate error | A CAA record that blocks Let's Encrypt | Remove it, or add 0 issue "letsencrypt.org" |
Google still shows vercel.app | The canonical still points to the old URL, or the redirect is missing | Fix both, then request indexing |
11FAQ
Is a .com.np domain really free?
Yes. Registering through register.com.np costs nothing. You only wait for the manual review.
76.76.21.21 or 216.198.79.1?
Use whatever your own Vercel Domains page shows. New projects get the 216.198.79.x range and per-project CNAMEs. 76.76.21.21 comes from older guides.
How do I add a subdomain like app.example.com.np?
Add it in the Vercel project, then create the CNAME that Vercel shows in Cloudflare, set to DNS only. It usually verifies within minutes.
Will moving from vercel.app hurt my SEO?
No, as long as you use a 308 redirect and update your canonical URLs. The redirect passes the old URL's ranking to the new address.
12Checklist
- The registry shows Cloudflare's nameservers (check with
dig @np-ns.npix.net.np) - Cloudflare has only Vercel's records, all set to DNS only
- Vercel shows Valid Configuration for both
wwwand the apex - The apex and
vercel.appboth 308-redirect tohttps://www., and the certificate is valid - SPF and DMARC are set to reject (if you send no email)
- Canonical, OG, JSON-LD, sitemap and robots.txt all use the new URL
- Search Console is verified, the sitemap is submitted and indexing is requested
- The domain is imported into Bing, and analytics returns 200