Skip to content

Commit

Permalink
Fix passing VERCEL_CLI_VERSION env for deploy tests (#39946)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
ijjk committed Aug 25, 2022
1 parent 434a869 commit 5e5d56c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/lib/next-modes/next-deploy.ts
Expand Up @@ -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(
Expand Down

0 comments on commit 5e5d56c

Please sign in to comment.