Repository navigation
fix(front): self-host the Inter and IBM Plex Mono fonts - #4539
mikeh-lago wants to merge 2 commits into
Conversation
Load the fonts from @fontsource packages bundled with the app instead of Google Fonts. The UI no longer calls fonts.googleapis.com or fonts.gstatic.com, so the CSP drops both hosts from style-src and font-src.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Keep the fonts with the other global stylesheets instead of the JS entry.
|
|
Automated pre-review (advisory, not a required check) — verdict: HOLD · CI green HOLD — Add focused regression coverage that fails on the previous setup and verifies the required Inter and IBM Plex Mono weights are sourced locally while Google Fonts origins are absent from |
|
Not adding these tests. Nothing in the repo tests |



Context
The app loads Inter and IBM Plex Mono from Google Fonts, so every page load calls
fonts.googleapis.comandfonts.gstatic.com. Self-hosted and air-gapped installs can't reach those hosts, and the CSP has to allow them.Description
@fontsourcepackages for Inter and IBM Plex Mono and import them insrc/main.cssnext to the other global stylesheets, so the fonts are bundled with the app.<link>tags fromindex.html.fonts.googleapis.comandfonts.gstatic.comfromstyle-srcandfont-srcinnginx/csp.conf.template.Fixes LAGO-1986