File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ exports.verifyBuildTarget = (target) => {
1313 }
1414}
1515
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 '
1818
1919exports . verifyNetlifyBuildVersion = ( { IS_LOCAL , NETLIFY_BUILD_VERSION , failBuild } ) => {
2020 // 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
2121 if ( IS_LOCAL && ! satisfies ( NETLIFY_BUILD_VERSION , REQUIRED_BUILD_VERSION , { includePrerelease : true } ) ) {
2222 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.
2424 You can do this by running: "npm install -g netlify-cli@latest" or "yarn global add netlify-cli@latest"
2525 ` )
2626 }
Original file line number Diff line number Diff line change @@ -97,16 +97,16 @@ describe('preBuild()', () => {
9797 expect (
9898 plugin . onPreBuild ( {
9999 ...defaultArgs ,
100- constants : { IS_LOCAL : true , NETLIFY_BUILD_VERSION : '15.11.4 ' } ,
100+ constants : { IS_LOCAL : true , NETLIFY_BUILD_VERSION : '18. 15.0 ' } ,
101101 } ) ,
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' )
103103 } )
104104
105105 test ( 'passes if the build version is new enough' , async ( ) => {
106106 expect (
107107 plugin . onPreBuild ( {
108108 ...defaultArgs ,
109- constants : { IS_LOCAL : true , NETLIFY_BUILD_VERSION : '15.12.2 ' } ,
109+ constants : { IS_LOCAL : true , NETLIFY_BUILD_VERSION : '18.16.1 ' } ,
110110 } ) ,
111111 ) . resolves . not . toThrow ( )
112112 } )
You can’t perform that action at this time.
0 commit comments