Skip to content

fix(privacy): self-host the Manrope font instead of loading it from Google Fonts - #55

Merged
toto04 merged 4 commits into
mainfrom
lorenzocorallo/self-host-fonts
Oct 15, 2026
Merged

toto04 merged 4 commits into
mainfrom
lorenzocorallo/self-host-fonts

Conversation

@lorenzocorallo

Copy link
Copy Markdown
Member

What

Replaces the Google Fonts @import in src/styles.css with @fontsource/manrope, imported per weight (400, 500, 600, 700, 800, the same weights as before). The font family is still Manrope, font-display: swap is unchanged, and Vite now bundles the font files into /assets.

Why

When a page loads a font from Google Fonts, the visitor's browser connects to fonts.googleapis.com and fonts.gstatic.com, which sends the visitor's IP address to Google. Serving the font ourselves stops that, so Google no longer has to be listed as a recipient in the privacy policy.

Verification

  • vp check (format, lint, typecheck) passes
  • vp test run passes
  • pnpm run build passes, including the server bundle check
  • .output contains no fonts.googleapis or fonts.gstatic references, and the Manrope .woff2 files are emitted in .output/public/assets
  • pnpm install --frozen-lockfile passes. The lockfile diff only adds @fontsource/manrope; the latest dependencies were not re-resolved.

@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 51 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 892b6390-dfd6-4883-bb6b-d855069c8be0
📥 Commits

Reviewing files that changed from the base of the PR and between 2a63265 and 654cced.

⛔ Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing: 2
  • package.json
  • src/styles.css

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 29fdcb64-e1db-45d3-9a3f-3e13d914e820
📥 Commits

Reviewing files that changed from the base of the PR and between 7ae7521 and 2a63265.

⛔ Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing: 2
  • package.json
  • src/styles.css

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The project adds @fontsource/manrope and replaces the remote Google Fonts import with package imports for Manrope weights 400, 500, 600, 700, and 800.

Changes

Manrope font imports

Layer / File(s) Summary
Add package-based Manrope imports
package.json, src/styles.css
package.json adds @fontsource/manrope as a dependency. src/styles.css imports five Manrope weights from the package instead of using a Google Fonts URL.

Priority: ⬇️ Low

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 2a632

The change replaces the remote font import with package-based imports; no concrete regression is established, so it appears ready to merge.

Pre-merge checks: Passed 4
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: replacing Google Fonts with a self-hosted Manrope font.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@toto04
toto04 enabled auto-merge (squash) October 15, 2026 10:34
@toto04
toto04 merged commit 4a255b6 into main Oct 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants