File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ exports.verifyBuildTarget = (target) => {
13
13
}
14
14
}
15
15
16
- // This is when the esbuild dynamic import support was added
17
- const REQUIRED_BUILD_VERSION = '>=15.11.5 '
16
+ // This is when nft support was added
17
+ const REQUIRED_BUILD_VERSION = '>=18.16.0 '
18
18
19
19
exports . verifyNetlifyBuildVersion = ( { IS_LOCAL , NETLIFY_BUILD_VERSION , failBuild } ) => {
20
20
// We check for build version because that's what's available to us, but prompt about the cli because that's what they can upgrade
21
21
if ( IS_LOCAL && ! satisfies ( NETLIFY_BUILD_VERSION , REQUIRED_BUILD_VERSION , { includePrerelease : true } ) ) {
22
22
return failBuild ( outdent `
23
- This version of the Essential Next.js plugin requires netlify-cli@4.4.2 or higher. Please upgrade and try again.
23
+ This version of the Essential Next.js plugin requires netlify-cli@6.12.4 or higher. Please upgrade and try again.
24
24
You can do this by running: "npm install -g netlify-cli@latest" or "yarn global add netlify-cli@latest"
25
25
` )
26
26
}
Original file line number Diff line number Diff line change @@ -97,16 +97,16 @@ describe('preBuild()', () => {
97
97
expect (
98
98
plugin . onPreBuild ( {
99
99
...defaultArgs ,
100
- constants : { IS_LOCAL : true , NETLIFY_BUILD_VERSION : '15.11.4 ' } ,
100
+ constants : { IS_LOCAL : true , NETLIFY_BUILD_VERSION : '18. 15.0 ' } ,
101
101
} ) ,
102
- ) . rejects . toThrow ( 'This version of the Essential Next.js plugin requires netlify-cli@4.4.2 or higher ' )
102
+ ) . rejects . toThrow ( 'This version of the Essential Next.js plugin requires netlify-cli' )
103
103
} )
104
104
105
105
test ( 'passes if the build version is new enough' , async ( ) => {
106
106
expect (
107
107
plugin . onPreBuild ( {
108
108
...defaultArgs ,
109
- constants : { IS_LOCAL : true , NETLIFY_BUILD_VERSION : '15.12.2 ' } ,
109
+ constants : { IS_LOCAL : true , NETLIFY_BUILD_VERSION : '18.16.1 ' } ,
110
110
} ) ,
111
111
) . resolves . not . toThrow ( )
112
112
} )
You can’t perform that action at this time.
0 commit comments