Skip to content

Commit fcb06fe

Browse files
authored
fix: update min Next.js version, and log current (#472)
1 parent 4edbc73 commit fcb06fe

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

helpers/validateNextUsage.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,23 @@ If you are using a monorepo, please see the docs on configuring your site: https
2323
// Old Next.js versions are not supported
2424
// eslint-disable-next-line import/no-dynamic-require
2525
const { version } = require(resolveNextModule(`next/package.json`, nextRoot))
26+
27+
console.log(`Using Next.js ${yellowBright(version)}`)
28+
2629
if (ltVersion(version, MIN_VERSION)) {
27-
return failBuild(`Please upgrade to Next.js ${MIN_VERSION} or later. Found ${version}.`)
30+
return failBuild(`Please upgrade to Next.js ${MIN_VERSION} or later.`)
2831
}
2932

3033
// Recent Next.js versions are sometimes unstable and we might not officially
3134
// support them yet. However, they might still work for some users, so we
3235
// only print a warning
3336
if (gteVersion(version, MIN_EXPERIMENTAL_VERSION)) {
34-
console.log(yellowBright(`** Warning: support for Next.js >=${MIN_EXPERIMENTAL_VERSION} is experimental **`))
37+
console.log(yellowBright(`Warning: support for Next.js >=${MIN_EXPERIMENTAL_VERSION} is experimental`))
3538
}
3639
}
3740

3841
const MIN_VERSION = '10.0.6'
39-
const MIN_EXPERIMENTAL_VERSION = '11.0.0'
42+
const MIN_EXPERIMENTAL_VERSION = '11.1.0'
4043

4144
const hasPackage = function (packageName, nextRoot) {
4245
try {

0 commit comments

Comments
 (0)