From f78d1858d2e7b82467c8982716f2864f450f2ddd Mon Sep 17 00:00:00 2001 From: Matt Kane Date: Wed, 28 Jul 2021 17:42:59 +0100 Subject: [PATCH] fix(nitro): detect `NETLIFY_LOCAL` (#400) --- src/utils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/index.ts b/src/utils/index.ts index 50d9682597..a9a7aac0ce 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -67,7 +67,7 @@ export function resolvePath (nitroContext: NitroInput, path: string | ((nitroCon } export function detectTarget () { - if (process.env.NETLIFY) { + if (process.env.NETLIFY || process.env.NETLIFY_LOCAL) { return 'netlify' }