Skip to content

Remove page-specific font example from docs#34694

Merged
kodiakhq[bot] merged 1 commit intovercel:canaryfrom
kara:remove-font-docs
Feb 22, 2022
Merged

Remove page-specific font example from docs#34694
kodiakhq[bot] merged 1 commit intovercel:canaryfrom
kara:remove-font-docs

Conversation

@kara
Copy link
Copy Markdown
Contributor

@kara kara commented Feb 22, 2022

The Font Optimization docs have an outdated example that recommends
adding fonts via next/head. This is an anti-pattern that Next.js
has already warned about through ESLint for a while (see
https://nextjs.org/docs/messages/no-page-custom-font) and is now
starting to warn about through the console because it won't work
well with streaming architecture.

This change removes the outdated example from the docs.
Fixes #34693

Documentation / Examples

  • Make sure the linting passes by running yarn lint

The Font Optimization docs have an outdated example that recommends
adding fonts via `next/head`. This is an anti-pattern that Next.js
has already warned about through ESLint for a while (see
https://nextjs.org/docs/messages/no-page-custom-font) and is now
starting to warn about through the console because it won't work
well with streaming architecture.

This change removes the outdated example from the docs.
Fixes vercel#34693
@kara kara marked this pull request as ready for review February 22, 2022 22:58
@kodiakhq kodiakhq Bot merged commit b3f2b38 into vercel:canary Feb 22, 2022
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documented use of Google Fonts via next/head generates a warning in development mode

3 participants