Skip to content

The open alternative to Salesforce, designed for AI.

fix: add NODE_OPTIONS to storybook build to prevent OOM errors (#16889)

Félix Malfaitb521f53d24f9
diff --git a/nx.json b/nx.json
index 02cac1a0b76..d25b6a03802 100644
--- a/nx.json
+++ b/nx.json
@@ -179,7 +179,7 @@
],
"options": {
"cwd": "{projectRoot}",
- "command": "VITE_DISABLE_TYPESCRIPT_CHECKER=true storybook build --test",
+ "command": "NODE_OPTIONS='--max-old-space-size=10240' VITE_DISABLE_TYPESCRIPT_CHECKER=true storybook build --test",
"output-dir": "storybook-static",
"config-dir": ".storybook"
},