Commit 2dd45fd
fix: add turbo --concurrency=3 and NODE_OPTIONS to prevent OOM/timeout on Vercel
Turbo builds 30+ workspace packages, 20+ of which use vite build. Without
concurrency limits, turbo runs ~10 Vite processes simultaneously on Vercel's
2-core/8GB machine, causing OOM or extreme memory pressure that pushes the
build past the 45-minute limit.
With --concurrency=3, only 3 builds run in parallel (~3-4.5GB peak), staying
within memory limits while completing in ~10-20 minutes. NODE_OPTIONS gives
each child process 4GB heap headroom.
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent d744723 commit 2dd45fd
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments