RexSystem1 voteoriginally by @mgabor3141 on GitHub OP
2: Self-hosted asset serving and CSP
Note
I ended up using the Fluxer CDN instead, so this point is not that relevant. See the CDN fix below.
Problem:rspack.config.mjs sets publicPath to ${CDN_ENDPOINT}/ in production. Since the CDN hosts the upstream builds, self-hosted instances must serve JS/CSS bundles from their own origin.
Fix in rspack.config.mjs:
Static assets (emoji SVGs, fonts, icons) can still be served from fluxerstatic.com — they're not instance-specific. But the CSP directives in ServiceInitializer.tsx don't include static_cdn_domain, so browsers block them.
Fix in fluxer_server/src/ServiceInitializer.tsx:
Thread
Comment by @mgabor3141
2: Self-hosted asset serving and CSP
rspack.config.mjssetspublicPathto${CDN_ENDPOINT}/in production. Since the CDN hosts the upstream builds, self-hosted instances must serve JS/CSS bundles from their own origin. Fix inrspack.config.mjs:fluxerstatic.com— they're not instance-specific. But the CSP directives inServiceInitializer.tsxdon't includestatic_cdn_domain, so browsers block them. Fix influxer_server/src/ServiceInitializer.tsx:staticCdnHosttoimgSrc,styleSrc, andfontSrcarrays.