← All errors · Vercel

404: NOT_FOUND on Vercel

Exact error

404: NOT_FOUND. Code: NOT_FOUND

What it means

Vercel has no file or route for the requested path.

Likely causes

How to fix it

  1. Check Project → Settings → Build & Development: framework preset and output directory (Vite uses dist).

  2. For SPAs with client-side routing, add a rewrite:

    // vercel.json
    { "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }] }

Related errors

Get new fixes weekly

No spam. Unsubscribe anytime. Privacy