Skip to content

Commit

Permalink
fix(nitro): detect NETLIFY_LOCAL (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic authored Jul 28, 2021
1 parent aed8092 commit f78d185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

Expand Down

0 comments on commit f78d185

Please sign in to comment.