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
29 "@modelcontextprotocol/sdk": "^1.26.0",29 "@modelcontextprotocol/sdk": "^1.26.0",
30 "@types/bun": "latest",30 "@types/bun": "latest",
31 "convex-test": "^0.0.41",31 "convex-test": "^0.0.41",
32 "next": "16.1.6",
32 "typescript": "latest"33 "typescript": "latest"
33 }34 }
34}35}
executor/vercel.json+2−2
@@ -1,7 +1,7 @@
1{1{
2 "$schema": "https://openapi.vercel.sh/vercel.json",2 "$schema": "https://openapi.vercel.sh/vercel.json",
3 "framework": "nextjs",
3 "buildCommand": "bun run --cwd apps/web build",4 "buildCommand": "bun run --cwd apps/web build",
4 "outputDirectory": "apps/web/.next",5 "outputDirectory": "apps/web/.next",
5 "installCommand": "bun install",6 "installCommand": "bun install"
6 "framework": "nextjs"
7}7}