Files
explorer-monorepo/frontend/public/thirdparty/README.md

22 lines
711 B
Markdown
Raw Normal View History

# Third-party bundles (optional)
## Mermaid (Visual Command Center)
`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:
1. From repo root:
```bash
bash explorer-monorepo/scripts/vendor-mermaid-for-command-center.sh
```
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
```
The minified Mermaid file is gitignored (~3.3 MB); do not commit it.