mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
## Description `basic-features` folder was deleted at #50701. Some existing paths navigate different pages. Then update correct paths. ### Improving Documentation - [x] Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - [x] Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide Co-authored-by: JJ Kasper <[email protected]>
16 lines
588 B
JavaScript
16 lines
588 B
JavaScript
// Validate next version
|
|
const semver = require('next/dist/compiled/semver')
|
|
if (semver.lt(require('next/package.json').version, '13.0.0')) {
|
|
throw new Error('`@next/font` is only available in Next.js 13 and newer.')
|
|
}
|
|
|
|
let message = '@next/font/google failed to run or is incorrectly configured.'
|
|
if (process.env.NODE_ENV === 'development') {
|
|
message +=
|
|
'\nIf you just installed `@next/font`, please try restarting `next dev` and resaving your file.'
|
|
}
|
|
|
|
message += `\n\nRead more: https://nextjs.org/docs/app/building-your-application/optimizing/fonts`
|
|
|
|
throw new Error(message)
|