Skip to content

Commit b5c9001

Browse files
committed
log that plugin does nothing for next export sites
1 parent e6996e7 commit b5c9001

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

helpers/isStaticExportProject.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,16 @@ const isStaticExportProject = ({ build, scripts }) => {
1212
const scriptValue = scripts[script]
1313
return build.command.includes(script) && scriptValue.includes(NEXT_EXPORT_COMMAND)
1414
})
15-
return isSetInNetlifyConfig || isSetInNpmScript
15+
16+
const isStaticExport = isSetInNetlifyConfig || isSetInNpmScript
17+
18+
if (isStaticExport) {
19+
console.log(
20+
`Static HTML export Next.js projects do not require this plugin. Check your project's build command for 'next export'.`,
21+
)
22+
}
23+
24+
return isStaticExport
1625
}
1726

1827
module.exports = isStaticExportProject

0 commit comments

Comments
 (0)