Skip to content

Commit

Permalink
Merge branch 'canary' into type
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jia-nan committed May 7, 2023
2 parents dc81993 + 173381a commit 8bb3a45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions errors/google-font-preconnect.md
@@ -1,5 +1,7 @@
# Google Font Preconnect

> Next.js automatically adds `<link rel="preconnect" />` after version `12.0.1`.
> 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/pages/building-your-application/optimizing/fonts)
3 changes: 2 additions & 1 deletion packages/next/src/cli/next-info.ts
Expand Up @@ -52,7 +52,7 @@ const nextInfo: CliCommand = async (argv) => {
`
Description
Prints relevant details about the current system which can be used to report Next.js bugs
Usage
$ next info
Expand Down Expand Up @@ -80,6 +80,7 @@ const nextInfo: CliCommand = async (argv) => {
eslint-config-next: ${getPackageVersion('eslint-config-next')}
react: ${getPackageVersion('react')}
react-dom: ${getPackageVersion('react-dom')}
typescript: ${getPackageVersion('typescript')}
`)

try {
Expand Down

0 comments on commit 8bb3a45

Please sign in to comment.