Repository navigation
fix(website): bundle fonts for offline builds - #2969
Merged
Merged
Conversation
hidb4ai
approved these changes
Dec 2, 2026
hidb4ai
left a comment
Contributor
There was a problem hiding this comment.
Reviewed the local-font change and the documented preload-size tradeoff. The offline font build, full static export, and actual English/Chinese browser font loading passed. No actionable defect found in this change.
Collaborator
hireview001
approved these changes
Dec 3, 2026
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.
Which issue or RFC does this PR close?
Fixes the website build failure observed in #2923 (failed job). Related to the font loading introduced by #2732; no tracking issue is closed.
Rationale for this change
Website builds fetch Google Fonts CSS and font files through
next/font/google. The failing build reached Next.js 16.4.1's font URL extension parser and crashed withCannot read properties of null (reading '1'). The same master had built successfully earlier, so this removes the external response dependency without assuming that the missing failing URL can be reproduced.What changes are included in this PR?
next/font/local, using complete WOFF2 assets converted from a pinned official Google Fonts commit. Include upstream licenses, source and output checksums, and reproducible conversion instructions.Are there any user-facing changes?
The font families and layout styles remain the same. Complete font files preload 514,060 bytes, about 322 KB more than the previous Latin-only preload; this preserves all character coverage without maintaining separate Unicode-range shards. Builds no longer need Google Fonts access. No dependency versions or CI runner settings change.
How was this change tested?
make docs-testpassed: 40 website tests, production build, and validation of 1,146 exported public pages and their links.POWERCONTEXT_TEST_BLOG_SITE=1 uv run --locked pytest tests/e2e/test_blog_site.py -q— 7 passed.uv run --locked prek run -aandgit diff --cached --checkpassed.AI usage statement
Implemented and reviewed with OpenAI Codex assistance, including an independent code review and local validation.