-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Next.js version support #25
Comments
Based on discussions with @lindsaylevine and @cassidoo on Slack, our current solution would be to only support Next.js Enabling the plugin by default in new sites should only happen if the site is using one of our officially supported Next.js versions. We could allow Next.js 10 users to use this plugin providing they explicitly install it though. This would result in the following actionable items:
We should then add two additional GitHub issues for:
What do you think? |
Several items done at #45, netlify/next-on-netlify#90 and #46 |
|
For the forward compatibility, one possible approach could be to lock users with older Next.js versions to an older version of this plugin. How this is implemented would depend on the Build plugins architecture by the time we need this, so I would suggest waiting until we need to drop support for older Next.js versions before looking into this. |
PR at #73 to re-enable |
npm 7 just became public and changes how
We have two choices:
I would favor the second choice, i.e. we should remove the |
Agree the second one makes the most sense, also due to this https://github.com/netlify/netlify-plugin-nextjs/blob/9b7b23e33167e4c295dd8124c96672f544d820c0/index.js#L80 |
next-on-netlify
requires users to installnext
themselves, i.e. it is a peerDependency.https://github.com/netlify/next-on-netlify/blob/a48735f625cc7ad1a080b322673d3e9a11f42d27/package.json#L37-L39
Furthermore, it requires them to install a specific Next.js version (
v9
even thoughv10
is the latest).In this plugin, we are using the
next
package to load the configuration filehttps://github.com/netlify/netlify-plugin-nextjs/blob/2849dc5f7c57e9fd827a939e067a871e4cb487b1/index.js#L7
https://github.com/netlify/netlify-plugin-nextjs/blob/2849dc5f7c57e9fd827a939e067a871e4cb487b1/package.json#L30
We might be missing a clear strategy on Next.js versioning compatibility:
next-on-netlify
and this plugin, because both are pinning a specific Next.js major versionnext-on-netlify
and this pluginAs new versions of Next.js will be released, the lack of a clear strategy might become a bigger problem.
I would recommend the following:
>=
range for both this plugin andnext-on-netlify
in the peerDependency version range, so that we can support multiple Next.js major releasesnext
apeerDependencies
instead of adependencies
in this plugin'spackage.json
What do you think?
The text was updated successfully, but these errors were encountered: