Skip to content

Commit be1df16

Browse files
remove object.keys on dependency check
Co-authored-by: ehmicky <ehmicky@users.noreply.github.com>
1 parent d3089c9 commit be1df16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = {
3737
return failBuild(`** Static HTML export next.js projects do not require this plugin **`)
3838
}
3939

40-
const hasNextOnNetlifyInstalled = Object.keys(dependencies).find((dep) => dep === 'next-on-netlify')
40+
const hasNextOnNetlifyInstalled = dependencies['next-on-netlify'] !== undefined
4141
const hasNextOnNetlifyPostbuildScript = Object.keys(scripts).find(
4242
(script) => script === 'postbuild' && scripts[script].includes('next-on-netlify'),
4343
)

0 commit comments

Comments
 (0)