Unverified Commit e7c9d3c0 authored by Steven's avatar Steven Committed by GitHub

fix: bump minimum Node.js version to 16.8.0 (#48957)

We bumped `undici` fetch which has a minimum version of 16.8.0 so we need to make sure `next` and `create-next-app` also have the same minimum version.

Since 14.x reaches End-of-Life on [2023-04-30](https://github.com/nodejs/Release), we can drop support for 14 in the next release.

See also:

- Related to #48870
- Related #48941
parent a141366f
......@@ -14,7 +14,7 @@ If you have questions about anything related to Next.js, you're always welcome t
#### System Requirements
- [Node.js 14.18.0](https://nodejs.org/) or newer
- [Node.js 16.8.0](https://nodejs.org/) or newer
- MacOS, Windows (including WSL), and Linux are supported
## Automatic Setup
......
......@@ -55,6 +55,6 @@
"validate-npm-package-name": "3.0.0"
},
"engines": {
"node": ">=16"
"node": ">=16.8.0"
}
}
......@@ -70,8 +70,9 @@ module.exports = function (task) {
},
env: {
targets: {
// follow the version defined in packages/next/package.json#engine
node: '14.18.0',
// Should match version defined in packages/next/package.json#engine
// Should also match NODE_16_VERSION in packages/next/src/server/config.ts
node: '16.8.0',
},
},
jsc: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment