From 5bd30886c82875c4a8ed33c2d6cb3d0ff4097b14 Mon Sep 17 00:00:00 2001 From: YashMishra0101 Date: Thu, 15 Jan 2026 02:57:35 +0530 Subject: [PATCH] fix: update getNodeVersion to getRuntimeNodeVersion The function getNodeVersion was renamed to getRuntimeNodeVersion in @vercel/build-utils package (vercel/vercel#14600). This change fixes the deployment error: Error: (0 , build_utils_1.getNodeVersion) is not a function Fixes #594 --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 652a16ec..6792e22e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,7 +7,7 @@ import { Lambda, BuildV3, PrepareCache, - getNodeVersion + getRuntimeNodeVersion } from '@vercel/build-utils'; import { getPhpFiles, @@ -114,7 +114,7 @@ export const build: BuildV3 = async ({ } console.log('🐘 Creating lambda'); - const nodeVersion = await getNodeVersion(workPath); + const nodeVersion = await getRuntimeNodeVersion(workPath); const lambda = new Lambda({ files: {