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
Option 1: Configure in Vercel Dashboard (Recommended)
- Go to: https://vercel.com/kcolbchains-projects/website/settings/general
- Scroll to Build & Development Settings
- Set Framework Preset to: "Other" or "Static Site"
- Keep:
- Build Command:
npm run build --workspace=packages/website - Output Directory:
packages/website/out - Install Command:
npm install
- Build Command:
- 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 dashboardWhy This Happens
When using output: 'export' in Next.js:
- Next.js creates a static site (no server)
- No
routes-manifest.jsonis 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:
- Remove
output: 'export'fromnext.config.js - Deploy as a regular Next.js app
- But this requires server-side rendering (costs more)
Recommended: Static Site Configuration
For a landing page/website, static is better:
- ✅ Faster
- ✅ Cheaper (no server functions)
- ✅ Better for SEO
- ✅ Works with CDN
After Fixing
- Update Framework Preset to "Other" or "Static Site"
- Redeploy
- Should work without routes-manifest.json error