Skip to content

docs: fix missing Roboto_Mono import in Pages Router font example#88849

Open
codeandcore wants to merge 2 commits intovercel:canaryfrom
codeandcore:fix/docs-font-example
Open

docs: fix missing Roboto_Mono import in Pages Router font example#88849
codeandcore wants to merge 2 commits intovercel:canaryfrom
codeandcore:fix/docs-font-example

Conversation

@codeandcore
Copy link

What?

Fix a broken Pages Router Tailwind font example where Roboto_Mono is used without being imported.

Why?

The current documentation example throws a ReferenceError when copied, which can confuse users following the Pages Router + Tailwind CSS font setup.

How?

Add the missing Roboto_Mono import from next/font/google in the Pages Router example.

Fixes #88291

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

Allow CI Workflow Run

  • approve CI run for commit: e9fba28

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

@nextjs-bot
Copy link
Collaborator

nextjs-bot commented Jan 21, 2026

Allow CI Workflow Run

  • approve CI run for commit: 7ef74bf

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

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 with app router documentation on pages router with Fonts

2 participants