codeant-ai-for-open-source[bot] commented on PR #38486:
URL: https://github.com/apache/superset/pull/38486#issuecomment-4016071393
## **Sequence Diagram**
Shows how the PR centralizes heap-space control and disables memory-heavy
SWC features locally to avoid OOMs, while setting a lower heap in Netlify CI
and invoking the Docusaurus CLI with the adjusted NODE_OPTIONS.
```mermaid
sequenceDiagram
participant Dev as Developer (local)
participant CI as Netlify CI
participant Script as scripts/docusaurus.mjs
participant Docusaurus as Docusaurus CLI
participant Config as docusaurus.config.ts
Dev->>Script: yarn start / yarn build (local)
Script->>Script: set NODE_OPTIONS = --max-old-space-size=8192 (local)
Script->>Docusaurus: spawn npx docusaurus <cmd> (with NODE_OPTIONS)
Docusaurus->>Config: load config (experimental_faster)
Config-->>Docusaurus: experimental_faster with swcJsLoader=false,
swcHtmlMinimizer=false (reduced memory)
CI->>Script: Netlify build runs (context.environment NODE_OPTIONS=4096)
Script->>Docusaurus: spawn npx docusaurus <cmd> (CI, lower heap)
```
---
*Generated by [CodeAnt AI](https://codeant.ai)*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]