From 10c306aee0c7e52b1174f18b8e2f5a688a3f16c4 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 6 Nov 2020 15:05:11 +0100 Subject: [PATCH] fix vercel env detection --- packages/nitro/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nitro/src/utils.ts b/packages/nitro/src/utils.ts index f5e2b54735..02a990da1e 100644 --- a/packages/nitro/src/utils.ts +++ b/packages/nitro/src/utils.ts @@ -57,7 +57,7 @@ export function detectTarget () { return 'netlify' } - if (process.env.VERCEL_URL) { + if (process.env.NOW_BUILDER) { return 'vercel' }