Vercel "Invalid Configuration" on Namecheap: the fix
Vercel says Invalid Configuration for your Namecheap domain? A URL Redirect Record adds a hidden A record. Delete it, check with dig, and recheck.
The Liite team8 min de leitura
Short answer
In Namecheap, open Advanced DNS, find any URL Redirect Record on @ or www, and delete it. Namecheap adds a hidden A record for every URL redirect, and that record conflicts with the one Vercel wants. Leave only the A and CNAME values shown in your project's Settings > Domains, then recheck in Vercel.
You added your domain to a Vercel project and copied the DNS records into Namecheap. The records look right, but the domain still doesn't work and Vercel shows this next to it:
Invalid Configuration
Why Vercel shows Invalid Configuration with Namecheap
Vercel's docs say this alert can appear when you add a domain bought from a third-party provider. There are many possible reasons. The most common cause on Namecheap is a record you can't fully see.
The hidden A record behind a URL Redirect. Namecheap's own help article explains that when a URL redirect is set for your domain, an additional A record points your domain at Namecheap's internal forwarding server. That A record isn't visible in the Advanced DNS section and is removed once the URL redirect record is deleted. So the host can resolve to two places: the Vercel address you added and Namecheap's forwarder. Vercel's docs list leftover records from a previous host as a cause. It tells you to remove other A, AAAA or CNAME records for the same hostname.
Where the redirect comes from. Namecheap says a newly registered domain gets parking-page records by default. These are a URL redirect on the @ host and a CNAME for www pointing to parkingpage.namecheap.com. Namecheap says to remove them after you set up your own host records. Other Namecheap setup guides also tell you to add a URL redirect for @. If you followed one of those before moving to Vercel, the redirect is still there.
One Reddit thread on r/nextjs from March 2025 reports exactly this: Namecheap had added a URL redirect record, and deleting it fixed the domain. People on GitHub Pages report the same pattern with an extra A record. That is one report, and Namecheap's help article is the firmer evidence.
Other causes. Vercel's troubleshooting table also lists several other causes, so check them if the redirect isn't the problem:
- A CNAME at the apex.
- A proxy in front of Vercel.
- A CAA record that blocks the certificate.
- A domain already used by another Vercel account.
Step-by-step fixes
Fix 1: delete the URL Redirect Record
- Sign in to Namecheap, open Domain List, and click Manage next to the domain.
- Open the Advanced DNS tab and find the Host records section.
- Look at the
@andwwwhosts. Delete any URL Redirect Record (unmasked, permanent or masked) with the trash icon. - Delete any default parking-page CNAME on
www(parkingpage.namecheap.com) if you're pointingwwwat Vercel instead. - Delete any A, AAAA or CNAME record on the same host that isn't a value Vercel gave you.
- Save the changes. Namecheap says new records usually take about 30 minutes to take effect.
Check before you delete
If a URL Redirect on www or @ is something you want, such as forwarding the apex to www, removing it changes your site's behavior. In Vercel you can add both hostnames to the project and set a redirect there instead.
Fix 2: match the records to Vercel exactly
- In Vercel, open your project's Settings > Domains.
- Copy the A and CNAME values shown for your domain. Vercel's docs say a Vercel address copied from another project or an older guide can leave the domain with an Invalid Configuration status.
- In Namecheap, set the A record on host
@and the CNAME on hostwwwto those values. - For the CNAME, copy the value exactly as shown, including the trailing period if Vercel shows one.
Fix 3: confirm what the internet sees
The hidden forwarder A record doesn't show in Advanced DNS, so check what DNS actually returns. Vercel's docs suggest these commands:
dig A yourdomain.com +short
dig CNAME www.yourdomain.com +shortYou should see only the A value from Settings > Domains for the apex, and only the CNAME target for www. A second address means a conflicting record is still live or still cached. Vercel's docs also show how to query Vercel's nameserver directly, independent of resolver caches. If that returns the expected value but other resolvers don't, wait for the previous record's TTL to expire.
Fix 4: check that Namecheap is your DNS
Records in Advanced DNS only count if the domain uses Namecheap's own DNS (BasicDNS, PremiumDNS or FreeDNS). If the Nameservers setting points at another provider, edit the records there. Vercel's docs say that if your domain uses another provider's nameservers, you make these changes at that provider instead.
Fix 5: recheck in Vercel
Open Settings > Domains and use the refresh option next to the domain. With the Vercel CLI you can run vercel domains verify yourdomain.com --project my-site, which exits with a non-zero status when the domain is misconfigured or needs ownership verification.
Cause, symptom and fix at a glance
| Cause | What you see | Fix |
|---|---|---|
URL Redirect on @ or www | dig A returns an extra address | Delete the redirect, wait, recheck |
Parking-page CNAME on www | www points at parkingpage.namecheap.com | Delete it, add Vercel's CNAME |
| CNAME on the apex | dig CNAME yourdomain.com returns a value | Replace it with Vercel's A record |
| Wrong values copied | Addresses differ from Settings > Domains | Copy the values for your project |
| Proxy in front of Vercel | A returns addresses that aren't Vercel's | Set the record to DNS only |
| Nameservers elsewhere | Namecheap edits change nothing | Edit records at the real DNS provider |
Vercel's table of causes is from its Managing DNS Records page; the Namecheap rows come from Namecheap's help articles. Both pages may change.
Don't mix A and CNAME
Vercel's docs say not to add both an A and a CNAME record for the same hostname. Use one record type per host.
What won't help
- Removing and re-adding the domain in Vercel. The conflict is in DNS at Namecheap, so this changes nothing.
- Adding more records "just in case". More A or CNAME records on the same host add to the conflict.
- Waiting a few days. Vercel says standard record changes propagate quickly. Only nameserver changes can take up to 24 to 48 hours. A conflicting record never expires on its own.
Checklist before you try again
- No URL Redirect Record remains on
@orwww(unless you deliberately want one and accept the trade-off). - The
@host has one A record, with the value from Settings > Domains. - The
wwwhost has one CNAME, with the value from Settings > Domains. - The domain uses Namecheap's DNS, or you edited the records at the provider the nameservers point to.
dig A yourdomain.com +shortreturns only the expected address.- You gave the change at least 30 minutes before rechecking.
If nothing works
Contact Vercel support from your dashboard if the DNS answers match Settings > Domains and the label stays. If dig still shows an address you can't find in Advanced DNS, contact Namecheap support, since that's where the hidden forwarder record lives. Include the exact label, the domain name, what dig returned and the time you ran it, and the records you deleted.
Hello,
My domain yourdomain.com shows "Invalid Configuration" in my Vercel project (Settings > Domains).
DNS is managed at Namecheap (BasicDNS). In Advanced DNS I have one A record on @ and one CNAME on www, both copied from Vercel. I deleted the URL Redirect Record on [date/time, timezone].
dig A yourdomain.com +short returns: [paste output]
dig CNAME www.yourdomain.com +short returns: [paste output]
Could you check whether another record, such as a redirect or forwarding record, is still being served for this domain?
Thank you.A simpler route for a static page
If all you need is a static page, an HTML file, a zip or a PDF online, Liite serves it at a <slug>.liite.site address with no DNS work. See put an HTML file, a zip or a PDF online. A custom domain on Liite is Pro and up and also needs DNS records, so the same stray-record check applies. Liite doesn't run server code or build from source, so it won't replace a Next.js deployment on Vercel.
Common questions
Why can't I see the extra A record in Namecheap?
Namecheap adds it behind the scenes when a URL redirect exists. Per its help article, it isn't visible in Advanced DNS and goes away when the URL redirect record is deleted. Use dig to see it from the outside.
Can I keep redirecting yourdomain.com to www?
Yes, but do it in Vercel, not with a Namecheap URL Redirect Record. Add both hostnames to the project and configure the redirect there.
How long until Vercel shows a valid configuration?
Namecheap says new host records usually take about 30 minutes. Vercel says changes to standard records typically propagate quicker than nameserver changes, which can take up to 48 hours.
Does the same problem happen on GitHub Pages or other hosts?
People report the same pattern elsewhere. Namecheap's guides for other hosts also tell you to check for conflicting URL Redirect, A or CNAME records on the same host. The cause is Namecheap's redirect, not the host.