Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error message about preconnect 馃摑 #40360

Merged
merged 3 commits into from
May 7, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions errors/google-font-preconnect.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Google Font Preconnect

> Next.js automatically add `<link rel="preconnect" />` after version `12.0.1`.
leerob marked this conversation as resolved.
Show resolved Hide resolved

> Ensure `preconnect` is used with Google Fonts.

### Why This Error Occurred
Expand All @@ -20,3 +22,4 @@ Note: a **separate** link with `dns-prefetch` can be used as a fallback for brow

- [Preconnect to required origins](https://web.dev/uses-rel-preconnect/)
- [Preconnect and dns-prefetch](https://web.dev/preconnect-and-dns-prefetch/#resolve-domain-name-early-with-reldns-prefetch)
- [`Next.js` font optimization](https://nextjs.org/docs/basic-features/font-optimization)
leerob marked this conversation as resolved.
Show resolved Hide resolved