Skip to content

Commit 5831b8b

Browse files
Copilothotlong
andcommitted
fix: add memory limit and concurrency cap to Vercel turbo build step
The turbo pre-build step was running 30+ package builds with default concurrency and no memory limits, causing OOM (exit code 137) on Vercel. Added NODE_OPTIONS=--max-old-space-size=4096 and --concurrency=3. Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 3d8ebaf commit 5831b8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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=4096 pnpm turbo run build --filter=@object-ui/console^... --concurrency=3 && cd apps/console && VITE_BASE_PATH=/ pnpm build:vercel",
55
"outputDirectory": "dist",
66
"framework": "vite",
77
"rewrites": [

0 commit comments

Comments
 (0)