blog

Vercel 404: DEPLOYMENT_NOT_FOUND on a Custom Domain

Vercel shows 404: NOT_FOUND with Code: DEPLOYMENT_NOT_FOUND? Fix the deployment URL, add the domain to the right project, or verify it with a TXT record.

6 min readVercelFixes

You open your site and Vercel shows a bare error page instead of your app: 404: NOT_FOUND, then Code: DEPLOYMENT_NOT_FOUND and an ID. The dashboard may even say the latest deployment is Ready. This error means Vercel got the request but has no deployment to serve for that address, and on a custom domain that usually comes down to how the domain is connected, not to your code.

This guide follows Vercel's own docs for the DEPLOYMENT_NOT_FOUND error, domain setup and domain troubleshooting, with real cases from the Vercel community forum.

What the error page looks like

When the request reaches Vercel and no deployment matches, you get Vercel's error page rather than your app's own 404. Vercel's 404 debugging guide describes it as 404: NOT_FOUND with a Code and an ID. One community report shows it like this:

404: NOT_FOUND
Code: DEPLOYMENT_NOT_FOUND
ID: bom1::vfrp6-1770704124527-bad7af667333

The code line matters. A plain NOT_FOUND code means the deployment exists but has no file for that path, which is the problem covered in Vercel 404 on refresh. DEPLOYMENT_NOT_FOUND means Vercel couldn't find the deployment itself. Vercel's error docs give the causes as a wrong deployment URL or ID and a deleted deployment.

Before you change anything, check one thing: is Vercel itself having a bad day? The live Vercel status page shows that in a few seconds. If Vercel is fine, it's your setup.

Step 1: Find out which address fails

Open these two addresses in a private window:

  1. Your custom domain, for example https://example.com.
  2. The production URL of the project, which you can open from the project's dashboard.

If the project's own URL works and the custom domain shows DEPLOYMENT_NOT_FOUND, the app is fine and the domain is the problem. Go to Step 3.

If a long generated URL fails, the kind with a hash in it that you copied from a build log or a pull request, go to Step 2.

Step 2: Fix a wrong or deleted deployment URL

Generated deployment URLs contain a unique hash, so one wrong character gives this error. Vercel's debugging 404 errors post recommends:

  1. Check the URL for typos or a wrong path.
  2. Open the deployment list in your project's dashboard and check that the deployment still exists and matches the URL you're visiting.
  3. If a teammate deleted it, switch to the URL of a more recent deployment.

Deployments also expire. Vercel's deployment retention policy deletes old deployments automatically. On Hobby and Pro, production and preview deployments become eligible for deletion after 30 days by default. Some are always kept, including any deployment that has a production alias, so the deployment behind your live domain isn't removed while it's in use. Old preview links you shared with a client are a different story.

A deployment removed by the retention policy shows 410 with the code GONE instead (that's DEPLOYMENT_DELETED). During its recovery period, which lasts up to 30 days, you can bring it back:

  1. Open Settings in the project's sidebar and select Security.
  2. Scroll to Recently Deleted Deployments.
  3. Find the deployment and choose Restore from its menu.

After the recovery period, it's gone for good. Deploy again and use the new URL.

Step 3: Add the domain to the right project

Community reports show this error after moving a domain between projects, and on a site whose deployment shows Ready while the domain still returns 404. Vercel's 404 guide lists domain configuration as a cause, and its first check is simple: the domain must be added to the project that holds your current production deployment.

Fix it from the project that should serve the site:

  1. On the dashboard, open that project.
  2. Open Settings in the sidebar, then Domains.
  3. If your domain isn't listed, click Add Existing and enter it. For an apex domain like example.com, Vercel also offers to add www.
  4. Wait for the domain to show Valid Configuration. If it shows Invalid Configuration instead, Vercel describes what's missing right there.

You can do the same from the terminal. Pass the project name, because leaving it out adds the domain to your team without assigning it to a project:

vercel domains add example.com my-project

Keep in mind that a domain can only be associated with one Vercel account or team at a time. If it belongs to a different one, go to Step 4.

Check the DNS records match this project

Vercel's troubleshooting page says to use the record values shown in Settings → Domains for this project, because they can differ between projects. Many projects show 76.76.21.21 for the apex A record, and newer ones can show an address like 216.198.79.1. Subdomains such as www use a CNAME that's unique to the project. A record copied from another project or an old guide can leave the domain with DNS Change Required or Invalid Configuration.

Compare what's live with what the dashboard shows:

dig A example.com +short
dig CNAME www.example.com +short
curl -IL https://example.com

Remove any other A or AAAA records for the apex before adding the new one. DNS changes can take a while to reach everyone. If the domain doesn't resolve at all, that's a different error: see DNS_PROBE_FINISHED_NXDOMAIN on your site.

Step 4: Claim a domain that's stuck in another account

Sometimes the domain is still linked to a Vercel account you no longer use: an old personal account, a former team, or a client's account. In one community report, the poster believed the domain still pointed at a deleted deployment from a previous account. When you try to add it, Vercel shows Another Vercel account is using this domain or The domain example.com is not available.

Your options, from the troubleshooting page and the claim domain ownership guide:

  • You can still log in to the other account. Move the domain to your current account from the Domains dashboard. Vercel's guide notes this doesn't require DNS verification.
  • You own the domain but not the other account. On your team's Domains page, click Add Domain and enter the domain. Vercel shows a TXT record to add with your DNS provider: the name is _vercel.example.com and the value starts with vc-domain-verify=. Add it, wait a few minutes, then click Verify & Claim.
  • Only one project needs it. When you add the domain in a project's Settings → Domains, Vercel may ask for the same kind of TXT record. That lets the project use the domain without moving it to your account.

Check that the record is live before you click verify:

dig TXT _vercel.example.com +short

If you remove the domain from a project and add it again, Vercel generates a new value, so update the record.

Confirm the fix

Open the domain in a private window, and run:

curl -sI https://example.com | head -1

You want HTTP/2 200, not HTTP/2 404. A 30x line means a redirect to your primary domain: run the same command on that address. Check www and the apex separately; each one is its own domain in Vercel's settings.

If you're unsure whether the outage is yours or Vercel's in general, this guide to telling the two apart walks through it.

Pingbuddy catches this automatically

A domain that stops pointing at a deployment returns a real HTTP 404, and Pingbuddy's uptime check treats any status of 400 or above as a failure. It opens your address like a browser every 5 minutes on the Free plan (up to 50 sites) or every minute on Pro and Agency. After a second failed check in a row, you get an alert on Telegram or by email saying the site shows a "page not found" message and may have been unpublished, moved or deleted, and another alert when it's back.

To see where your site stands right now, run a free checkup.

FAQ

What does DEPLOYMENT_NOT_FOUND mean on Vercel?
Vercel received the request but couldn't match it to a deployment. Its error docs list a wrong deployment URL and a deleted deployment as the causes. On a custom domain, it usually means the domain isn't connected to the project that has your current deployment.
Why do I get DEPLOYMENT_NOT_FOUND after moving a domain to another project?
The domain has to be added to the new project under Settings, then Domains, and show Valid Configuration there. If it still belongs to another Vercel account or team, Vercel asks you to verify it with a TXT record at _vercel on your domain before the new project can use it.
What is the difference between DEPLOYMENT_NOT_FOUND and 410 GONE?
Both mean the deployment can't be served. 410 GONE (DEPLOYMENT_DELETED) appears while a deleted deployment is still in its recovery period, so you can restore it from Settings, Security, Recently Deleted Deployments. DEPLOYMENT_NOT_FOUND is a 404 for a deployment Vercel can't find at all.
Can my site go down with this error without me changing anything?
A domain in use stays tied to its production deployment, but old generated URLs can be deleted by Vercel's retention policy, and a teammate can remove a domain or a deployment. That's why it helps to check the live address on a schedule rather than only after your own changes.

Run a free Pingbuddy checkup on any site: see whether it answers and how fast, when its SSL certificate and domain expire, and whether secret keys are visible in its public code.

Run free checkup →