mirror of
https://github.com/luxfi/bridge.git
synced 2026-09-24 00:26:46 +00:00
The app/bridge SPA baked @luxfi/brand at build time and the Go server served brand at /envs.js while the SPA loads /__ENV.js — so a white-label tenant (e.g. zooai/bridge-shim) rendered the Lux brand. Complete the stated 'jurisdiction-neutral, tenant supplies brand' design: - bridge.config.ts: brand name/favicon/primaryColor/supportEmail/docsUrl are now window.__ENV-overridable (logoUrl already was); @luxfi/brand stays the fallback so the Lux tenant is byte-unchanged when no override is set. - frontend.go: serve /__ENV.js (the endpoint the SPA actually loads) projecting the tenant brand+IAM into the BRIDGE_* keys; applyBrandMetadata() then themes title/favicon/logo/color at mount. Empty when no tenant → Lux fallback. - main.go: pass the tenant config into NewFrontend.