.
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
export { default } from '../dist/local/index'
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// 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/local 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)
|
||||
+1
@@ -0,0 +1 @@
|
||||
export { default } from '../dist/local/loader'
|
||||
+1
@@ -0,0 +1 @@
|
||||
module.exports = require('../dist/local/loader')
|
||||
Reference in New Issue
Block a user