diff --git a/docs/upgrading.md b/docs/upgrading.md index 9ad1d20594680..164f500efc3a6 100644 --- a/docs/upgrading.md +++ b/docs/upgrading.md @@ -6,7 +6,7 @@ description: Learn how to upgrade Next.js. ## Upgrading from version 10 to 11 -## Upgrade React version to latest +### Upgrade React version to latest Most applications already use the latest version of React, with Next.js 11 the minimum React version has been updated to 17.0.2. @@ -22,6 +22,20 @@ Or using `yarn`: yarn add react@latest react-dom@latest ``` +### Upgrade Next.js version to latest + +To upgrade you can run the following command in the terminal: + +``` +npm install next@latest +``` + +or + +``` +yarn add next@latest +``` + ### Webpack 5 Webpack 5 is now the default for all Next.js applications. If you did not have custom webpack configuration your application is already using webpack 5. If you do have custom webpack configuration you can refer to the [Next.js webpack 5 documentation](https://nextjs.org/docs/messages/webpack5) for upgrading guidance.