2026-04-07 23:22:12 -07:00
# Third-party bundles (optional)
## Mermaid (Visual Command Center)
2026-06-19 16:16:17 -07:00
`chain138-command-center.html` loads Mermaid from * * `/thirdparty/mermaid.min.js` first**. If the local bundle is missing, the page runtime loads jsDelivr as a fallback.
To vendor Mermaid for offline / CSP-locked hosts:
2026-04-07 23:22:12 -07:00
1. From repo root:
```bash
bash explorer-monorepo/scripts/vendor-mermaid-for-command-center.sh
```
2026-06-19 16:16:17 -07:00
2. Deploy with `deploy-next-frontend-to-vmid5000.sh` — it copies `thirdparty/mermaid.min.js` when the file exists.
Before deploy, refresh bundle metadata:
```bash
bash explorer-monorepo/scripts/refresh-chain138-command-center-meta.sh
```
2026-04-07 23:22:12 -07:00
2026-06-19 16:16:17 -07:00
The minified Mermaid file is gitignored (~3.3 MB); do not commit it.