Skip to content

Fix Vercel Website Deployment - routes-manifest.json Error

Problem

Error: The file "/vercel/path0/packages/website/out/routes-manifest.json" couldn't be found

This happens because Vercel is trying to use Next.js server features, but we're using static export.

Solution

  1. Go to: https://vercel.com/kcolbchains-projects/website/settings/general
  2. Scroll to Build & Development Settings
  3. Set Framework Preset to: "Other" or "Static Site"
  4. Keep:
    • Build Command: npm run build --workspace=packages/website
    • Output Directory: packages/website/out
    • Install Command: npm install
  5. Save and redeploy

Option 2: Use Vercel CLI to Update Settings

bash
cd packages/website
vercel project ls
# Note the project ID, then update settings via dashboard

Why This Happens

When using output: 'export' in Next.js:

  • Next.js creates a static site (no server)
  • No routes-manifest.json is generated
  • Vercel detects Next.js and tries to use server features
  • This causes the error

Alternative: Keep as Next.js but Fix Build

If you want to keep it as Next.js:

  1. Remove output: 'export' from next.config.js
  2. Deploy as a regular Next.js app
  3. But this requires server-side rendering (costs more)

For a landing page/website, static is better:

  • ✅ Faster
  • ✅ Cheaper (no server functions)
  • ✅ Better for SEO
  • ✅ Works with CDN

After Fixing

  1. Update Framework Preset to "Other" or "Static Site"
  2. Redeploy
  3. Should work without routes-manifest.json error

CR8 Platform Documentation