Vercel scans the root package.json for the Next.js version before running install. In a monorepo where next is only in apps/web, the root needs a reference so Vercel's framework detection succeeds.
Unified · Split
| @@ -29,6 +29,7 @@ · 28 unmodified lines | ||
| 29 | 29 | "@modelcontextprotocol/sdk": "^1.26.0", |
| 30 | 30 | "@types/bun": "latest", |
| 31 | 31 | "convex-test": "^0.0.41", |
| 32 | + "next": "16.1.6", | |
| 32 | 33 | "typescript": "latest" |
| 33 | 34 | } |
| 34 | 35 | } |
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "$schema": "https://openapi.vercel.sh/vercel.json", |
| 3 | + "framework": "nextjs", | |
| 3 | 4 | "buildCommand": "bun run --cwd apps/web build", |
| 4 | 5 | "outputDirectory": "apps/web/.next", |
| 5 | − "installCommand": "bun install", | |
| 6 | − "framework": "nextjs" | |
| 6 | + "installCommand": "bun install" | |
| 7 | 7 | } |