Commit 392ec7f
fix: SQLite busy_timeout prevents 'database is locked' during parallel build
Next.js uses multiple workers for prerendering, all hitting the same
SQLite DB file. WAL mode allows concurrent reads but writes still lock.
Added busy_timeout=5000 so workers wait up to 5s instead of failing
immediately with 'database is locked'.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 6781cb6 commit 392ec7f
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
0 commit comments