From 5e5d56c1f7922cf8cca50b376169bdad3eb7c1d2 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Thu, 25 Aug 2022 14:03:00 -0500 Subject: [PATCH] Fix passing VERCEL_CLI_VERSION env for deploy tests (#39946) The quotes around the env were being passed literally breaking usage of the env variable so this removes them. x-ref: [slack thread](https://vercel.slack.com/archives/C02K2HCH5V4/p1661417510950809?thread_ts=1659529028.137779&cid=C02K2HCH5V4) --- test/lib/next-modes/next-deploy.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/lib/next-modes/next-deploy.ts b/test/lib/next-modes/next-deploy.ts index a06c85f51469..8cb141fa4dcd 100644 --- a/test/lib/next-modes/next-deploy.ts +++ b/test/lib/next-modes/next-deploy.ts @@ -76,9 +76,7 @@ export class NextDeployInstance extends NextInstance { if (process.env.VERCEL_CLI_VERSION) { additionalEnv.push('--build-env') - additionalEnv.push( - `VERCEL_CLI_VERSION="${process.env.VERCEL_CLI_VERSION}"` - ) + additionalEnv.push(`VERCEL_CLI_VERSION=${process.env.VERCEL_CLI_VERSION}`) } const deployRes = await execa(