Skip to content

Fix validation of sites without Next.js #117

Closed
@ehmicky

Description

@ehmicky

When a site does not have Next.js, the following error message should be shown, so it is clear to users what should be fixed:

https://github.com/netlify/netlify-plugin-nextjs/blob/430569c6421f4447228ada44fe5821707f796d98/helpers/validateNextUsage.js#L9-L13

This requires importing next dynamically. This used to rely on next-on-netlify being dynamically imported. With next-on-netlify being merged, this stopped working and the following is shown instead (marked as a plugin bug in the build logs):

wrong_next

This should be fixed by importing next dynamically.

Metadata

Metadata

Assignees

Labels

type: bugcode to address defects in shipped code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions