Skip to content

docs: remove incorrect _document.tsx font example#91346

Merged
icyJoseph merged 2 commits intovercel:canaryfrom
zamadye:fix-document-font-example
Mar 14, 2026
Merged

docs: remove incorrect _document.tsx font example#91346
icyJoseph merged 2 commits intovercel:canaryfrom
zamadye:fix-document-font-example

Conversation

@zamadye
Copy link
Contributor

@zamadye zamadye commented Mar 13, 2026

saw the issue about the _document.tsx example not working. next/font cant be used in _document.tsx, it throws an error. removed that section from the docs since _app.tsx already has the correct example.

fixes #88832

@nextjs-bot nextjs-bot added Documentation Related to Next.js' official documentation. Font (next/font) Related to Next.js Font Optimization. labels Mar 13, 2026
@nextjs-bot
Copy link
Collaborator

Allow CI Workflow Run

  • approve CI run for commit: b4a759c

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

1 similar comment
@nextjs-bot
Copy link
Collaborator

Allow CI Workflow Run

  • approve CI run for commit: b4a759c

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

Copy link
Member

@icyJoseph icyJoseph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ty for the PR:

@icyJoseph icyJoseph merged commit 914df17 into vercel:canary Mar 14, 2026
62 checks passed
@zamadye
Copy link
Contributor Author

zamadye commented Mar 14, 2026

tried but tests are failing. any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Related to Next.js' official documentation. Font (next/font) Related to Next.js Font Optimization.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: Wrong example on Pages router with Fonts in _document.tsx

3 participants