Skip to content

Commit

Permalink
feat(vercel): Update Node.js version options in Vercel build executor
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The default node version is now set to `22.x` (LTS)
  • Loading branch information
TriPSs committed Nov 26, 2024
1 parent 8692bf3 commit 0ddc9c9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vercel/src/executors/build/build.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface BuildOptions {
buildTarget?: string
framework?: string
outputPath?: string
nodeVersion?: '16.x'
nodeVersion?: '20.x' | '22.x'
config: string
}

Expand Down Expand Up @@ -115,7 +115,7 @@ export function buildExecutor(
outputDirectory: getOutputDirectory(framework, outputDirectory),
rootDirectory: null,
directoryListing: false,
nodeVersion: options.nodeVersion || '20.x'
nodeVersion: options.nodeVersion || '22.x'
}
})

Expand Down
8 changes: 8 additions & 0 deletions packages/vercel/src/executors/build/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@
"remix",
"other"
]
},
"nodeVersion": {
"type": "string",
"description": "What version of node to configure",
"enum": [
"20.x",
"22.x"
]
}
},
"required": [
Expand Down

0 comments on commit 0ddc9c9

Please sign in to comment.