History

Fix Vercel build: add next to root devDependencies for framework detection

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.

Rhys Sullivan committed 9 months ago

Commit 656bb451 parent 002c0ef2 files · +3 −2Browse files

Unified · Split

2 files
  1. executor/package.json +1 −0
  2. executor/vercel.json +2 −2
executor/package.json+1−0
@@ -29,6 +29,7 @@ · 28 unmodified lines
2929 "@modelcontextprotocol/sdk": "^1.26.0",
3030 "@types/bun": "latest",
3131 "convex-test": "^0.0.41",
32+ "next": "16.1.6",
3233 "typescript": "latest"
3334 }
3435 }
executor/vercel.json+2−2
@@ -1,7 +1,7 @@
11 {
22 "$schema": "https://openapi.vercel.sh/vercel.json",
3+ "framework": "nextjs",
34 "buildCommand": "bun run --cwd apps/web build",
45 "outputDirectory": "apps/web/.next",
5− "installCommand": "bun install",
6− "framework": "nextjs"
6+ "installCommand": "bun install"
77 }