We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3089c9 commit be1df16Copy full SHA for be1df16
index.js
@@ -37,7 +37,7 @@ module.exports = {
37
return failBuild(`** Static HTML export next.js projects do not require this plugin **`)
38
}
39
40
- const hasNextOnNetlifyInstalled = Object.keys(dependencies).find((dep) => dep === 'next-on-netlify')
+ const hasNextOnNetlifyInstalled = dependencies['next-on-netlify'] !== undefined
41
const hasNextOnNetlifyPostbuildScript = Object.keys(scripts).find(
42
(script) => script === 'postbuild' && scripts[script].includes('next-on-netlify'),
43
)
0 commit comments