Skip to content

Commit adb6839

Browse files
Copilothotlong
andcommitted
fix(vercel): increase memory limit and reduce turbo concurrency for Vercel build
Add NODE_OPTIONS=--max-old-space-size=8192 and --concurrency=2 to the Vercel build command to prevent OOM during monorepo compilation. Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent ccd7cda commit adb6839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/console/vercel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://openapi.vercel.sh/vercel.json",
33
"installCommand": "cd ../.. && pnpm install --frozen-lockfile",
4-
"buildCommand": "cd ../.. && pnpm turbo run build --filter=@object-ui/console^... && cd apps/console && VITE_BASE_PATH=/ pnpm build:vercel",
4+
"buildCommand": "cd ../.. && NODE_OPTIONS=--max-old-space-size=8192 pnpm turbo run build --filter=@object-ui/console^... --concurrency=2 && cd apps/console && NODE_OPTIONS=--max-old-space-size=8192 VITE_BASE_PATH=/ pnpm build:vercel",
55
"outputDirectory": "dist",
66
"framework": "vite",
77
"rewrites": [

0 commit comments

Comments
 (0)