Skip to content

Commit

Permalink
Update packages/adapter-vercel/index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm authored Nov 22, 2024
1 parent 3018f10 commit c5dd368
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/adapter-vercel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ const DEFAULT_FUNCTION_NAME = 'fn';
const get_default_runtime = () => {
const major = Number(process.version.slice(1).split('.')[0]);

// If we're building on Vercel, we know that the version will be fine. Also means
// we're not on the hook for updating the adapter every time a new Node version is
// added to Vercel.
// If we're building on Vercel, we know that the version will be fine because Vercel
// provides Node (and Vercel won't provide something it doesn't support).
// Also means we're not on the hook for updating the adapter every time a new Node
// version is added to Vercel.
if (!process.env.VERCEL) {
if (major < 18 || major > 22) {
throw new Error(
Expand Down

0 comments on commit c5dd368

Please sign in to comment.