Skip to content

Commit 9c18488

Browse files
Jake Mahonclaude
authored andcommitted
Reduce build scope to single product for memory optimization
- Set DOCS_PRODUCT=auditor to build only Auditor documentation - Add build-full script for complete builds when needed - Dramatically reduces memory usage by filtering products - Should prevent Netlify exit code 137 (memory exhaustion) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent dd21955 commit 9c18488

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"docusaurus": "npx docusaurus",
88
"start": "cross-env NODE_OPTIONS=--max-old-space-size=16384 CHOKIDAR_USEPOLLING=false npx docusaurus start --port=4500 --no-open",
99
"start-chok": "cross-env NODE_OPTIONS=--max-old-space-size=16384 CHOKIDAR_USEPOLLING=true npx docusaurus start --port=4500 --no-open",
10-
"build": "cross-env NODE_OPTIONS=\"--max-old-space-size=31744 --max_old_space_size=31744\" npx docusaurus build",
10+
"build": "cross-env NODE_OPTIONS=\"--max-old-space-size=31744 --max_old_space_size=31744\" DOCS_PRODUCT=auditor npx docusaurus build",
11+
"build-full": "cross-env NODE_OPTIONS=\"--max-old-space-size=31744 --max_old_space_size=31744\" npx docusaurus build",
1112
"swizzle": "npx docusaurus swizzle",
1213
"clear": "npx docusaurus clear",
1314
"serve": "npx serve -s build -l 8080",

0 commit comments

Comments
 (0)