fix(nitro): detect NETLIFY_LOCAL (#400)

This commit is contained in:
Matt Kane 2021-07-28 17:42:59 +01:00 committed by GitHub
parent 8e5e229031
commit 4a989e9b7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'
}