Repository navigation
fix(fonts): self-host Geist so the production build needs no network - #50
Merged
Merged
Conversation
next/font/google downloads Geist from Google Fonts at build time, and that download fails inside the Docker build, so the production image could not be built at all (on main too). The `geist` package ships the same variable fonts and loads them with next/font/local under the same --font-geist-* variables, so the build no longer contacts Google. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
IBJunior
added a commit
that referenced
this pull request
Oct 16, 2026
Brings in the self-hosted Geist fonts (#50) so the production image builds. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
docker compose --profile full upcannot build the web image.next/font/googledownloads Geist from Google Fonts duringpnpm build, and inside the Docker build that download fails:This also happens on
main, independent of #49. A small test build fetched the same URL without problems, so it's not a general network outage, but the production build shouldn't depend on reaching a third party in the first place.What changed
geistpackage (Vercel's official distribution). It ships the same Geist and Geist Mono variable fonts and loads them throughnext/font/local.src/app/layout.tsxusesGeistSans/GeistMonofrom that package. They set the same--font-geist-sans/--font-geist-monovariables thatglobals.cssalready reads, so no styling changes.The fonts are still self-hosted under
/_next/static/media, as before. The only difference is that the build no longer fetches them from Google.Verification
pnpm buildsucceeds locally, and.next/static/mediacontains the Geist and Geist Mono.woff2files.docker compose --profile full build webnow succeeds; before this change it failed on the font fetch.tsc --noEmitandpnpm testpass.🤖 Generated with Claude Code