[Major] update node.js to v20
Updates minimum required Node.js version to v20
🦋 Changeset detected
Latest commit: 268e2b9fb380435c71f976592ba2ba6efa69e772
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 3 packages
| Name | Type |
|---|---|
| @opennextjs/aws | Major |
| app-pages-router | Patch |
| app-router | Patch |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
For upgrading to Node 20, we also need to upgrade the actual AWS CI deployment, which still use Node 18. And it probably means that we need to drop support for at least Next 12, and very likely 13 as well
Yeah, that makes sense. Given that Next.js v14 has been out for a while (2023) I think that dropping support for older Next versions is reasonable.
wdyt?
I think supporting current and the 2 versions prior seems reasonable.
Chiming in here, AWS have just released node 24 support. In terms of supporting next.js versions, Vercel themselves only support 15 and 16 (latest two versions) at the time of writing.
https://nextjs.org/support-policy
In AWS terms, node 20 will be deprecated from April '26 - https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html