File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,10 @@ const DEFAULT_FUNCTION_NAME = 'fn';
13
13
const get_default_runtime = ( ) => {
14
14
const major = Number ( process . version . slice ( 1 ) . split ( '.' ) [ 0 ] ) ;
15
15
16
- // If we're building on Vercel, we know that the version will be fine. Also means
17
- // we're not on the hook for updating the adapter every time a new Node version is
18
- // added to Vercel.
16
+ // If we're building on Vercel, we know that the version will be fine because Vercel
17
+ // provides Node (and Vercel won't provide something it doesn't support).
18
+ // Also means we're not on the hook for updating the adapter every time a new Node
19
+ // version is added to Vercel.
19
20
if ( ! process . env . VERCEL ) {
20
21
if ( major < 18 || major > 22 ) {
21
22
throw new Error (
You can’t perform that action at this time.
0 commit comments