mirror of
https://github.com/apache/superset.git
synced 2026-07-29 01:52:26 +00:00
Two related visibility gaps, fixed together since both ride on the same nightly build: 1. superset-storybook.netlify.app has been live and populated with real, current component stories the whole time (Netlify's own git integration auto-builds and deploys it, no CI workflow involved) -- but there was no link to it anywhere in the repo. Added a README badge. 2. BUNDLE_ANALYZER=true npm run build has always produced a browsable treemap of what's actually in the bundle, but only ever locally, on request. Now rides along in the same nightly build that already refreshes the bundle-size baseline (BUNDLE_ANALYZER and BUNDLE_SIZE_STATS are independent env-gated additions to webpack.config.js, so one production build produces both), publishing the treemap (report.html) to Netlify -- the same host already trusted for Storybook and docs previews, reusing the existing NETLIFY_AUTH_TOKEN secret. Deliberately does not publish the sibling statistics.html sunburst chart: webpack.config.js documents it as routinely exceeding 100MB for this app (it's .gitignore'd for exactly that reason), too large for a static site page. The Netlify publish step is gated on NETLIFY_BUNDLE_ANALYZER_SITE_ID and no-ops until that secret exists -- safe to merge now. Turning it on just needs a new (free) Netlify site named superset-bundle-analyzer and its site ID added as that secret; nothing else in the workflow depends on it. The README badge points at that same URL in anticipation.