0007. The web worked example is built static, with no CDN Babel
Status: Accepted · 2026-10-17
Context
The prototype's five pages compile JSX in the browser with @babel/standalone, and load React, Phosphor, Google Fonts, ApexCharts and jsvectormap from CDNs. Station's public surface must open from disk with no CDN and no module script.
Decision
apps/web rebuilds the five pages (Home, Analytics, Link, QR, Page editor) on studio-react and is bundled ahead of time into public/app/ as classic scripts, with fonts and icons self-hosted from npm. npm run build calls its build script; the browser checks open it over http and from file://.
Consequences
- No runtime JSX compile and no network at view time.
- Chart and map libraries must come from npm and be bundled, or be replaced by Studio's own drawing.
public/app/is generated and committed, like the rest ofpublic/.