@@ -70,7 +70,7 @@ const SUPPORTED_NODE_VERSIONS: Record<
70
70
| { status : 'retiring' ; removal : Date | string ; warnDate : Date }
71
71
| { status : 'deprecated' ; removal : Date }
72
72
> = {
73
- 18 : { status : 'retiring' , removal : 'Early 2025', warnDate : new Date ( 'October 1 2024' ) } ,
73
+ 18 : { status : 'retiring' , removal : new Date ( 'September 1 2025') , warnDate : new Date ( 'October 1 2024' ) } ,
74
74
20 : { status : 'available' } ,
75
75
22 : { status : 'default' } ,
76
76
} ;
@@ -703,10 +703,10 @@ function getRuntime(process: NodeJS.Process, logger: AstroIntegrationLogger): Ru
703
703
logger . warn (
704
704
`\n` +
705
705
`\tThe local Node.js version (${ major } ) is not supported by Vercel Serverless Functions.\n` +
706
- `\tYour project will use Node.js 18 as the runtime instead.\n` +
707
- `\tConsider switching your local version to 18 .\n` ,
706
+ `\tYour project will use Node.js 22 as the runtime instead.\n` +
707
+ `\tConsider switching your local version to 22 .\n` ,
708
708
) ;
709
- return 'nodejs18 .x' ;
709
+ return 'nodejs22 .x' ;
710
710
}
711
711
if ( support . status === 'default' || support . status === 'available' ) {
712
712
return `nodejs${ major } .x` ;
@@ -733,11 +733,11 @@ function getRuntime(process: NodeJS.Process, logger: AstroIntegrationLogger): Ru
733
733
`\n` +
734
734
`\tYour project is being built for Node.js ${ major } as the runtime.\n` +
735
735
`\tThis version is deprecated by Vercel Serverless Functions, and scheduled to be disabled on ${ removeDate } .\n` +
736
- `\tConsider upgrading your local version to 18 .\n` ,
736
+ `\tConsider upgrading your local version to 22 .\n` ,
737
737
) ;
738
738
return `nodejs${ major } .x` ;
739
739
}
740
- return 'nodejs18 .x' ;
740
+ return 'nodejs22 .x' ;
741
741
}
742
742
743
743
function createConfigHeaders ( staticHeaders : RouteToHeaders , config : AstroConfig ) : Header [ ] {
0 commit comments