Skip to content

Commit d520808

Browse files
committed
fix: increase Node.js heap limit for Next.js build to prevent OOM on Vercel
The 8GB Vercel build machine defaults to ~1.5GB Node.js heap, which is insufficient for the docs site build (React Compiler + MDX + Shiki).
1 parent 41dbd3f commit d520808

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dev": "next dev",
88
"dev:email": "next dev",
99
"prebuild:site": "vp run --filter @blocknote/dev-scripts gen",
10-
"build:site": "fumadocs-mdx && next build",
10+
"build:site": "fumadocs-mdx && NODE_OPTIONS='--max-old-space-size=6144' next build",
1111
"start": "next start",
1212
"types:check": "fumadocs-mdx && next typegen && tsc --noEmit",
1313
"postinstall": "fumadocs-mdx",

0 commit comments

Comments
 (0)