forked from vercel/next.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: Fix upgrade guide files (vercel#59249)
- Add v14 update guide to /app router docs - Fix duplicate /upgrading folders
- Loading branch information
1 parent
c1fba57
commit 63a578f
Showing
3 changed files
with
38 additions
and
29 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
docs/02-app/01-building-your-application/09-upgrading/03-version-14.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: Version 14 | ||
description: Upgrade your Next.js Application from Version 13 to 14. | ||
--- | ||
|
||
{/* The content of this doc is shared between the app and pages router. You can use the `<PagesOnly>Content</PagesOnly>` component to add content that is specific to the Pages Router. Any shared content should not be wrapped in a component. */} | ||
|
||
## Upgrading from 13 to 14 | ||
|
||
To update to Next.js version 14, run the following command using your preferred package manager: | ||
|
||
```bash filename="Terminal" | ||
npm i next@latest react@latest react-dom@latest eslint-config-next@latest | ||
``` | ||
|
||
```bash filename="Terminal" | ||
yarn add next@latest react@latest react-dom@latest eslint-config-next@latest | ||
``` | ||
|
||
```bash filename="Terminal" | ||
pnpm up next react react-dom eslint-config-next --latest | ||
``` | ||
|
||
```bash filename="Terminal" | ||
bun add next@latest react@latest react-dom@latest eslint-config-next@latest | ||
``` | ||
|
||
> **Good to know:** If you are using TypeScript, ensure you also upgrade `@types/react` and `@types/react-dom` to their latest versions. | ||
### v14 Summary | ||
|
||
- The minimum Node.js version has been bumped from 16.14 to 18.17, since 16.x has reached end-of-life. | ||
- The `next export` command is deprecated in favor of `output: 'export'`. Please see the [docs](https://nextjs.org/docs/app/building-your-application/deploying/static-exports) for more information. | ||
- The `next/server` import for `ImageResponse` was renamed to `next/og`. A [codemod is available](/docs/app/building-your-application/upgrading/codemods#next-og-import) to safely and automatically rename your imports. | ||
- The `@next/font` package has been fully removed in favor of the built-in `next/font`. A [codemod is available](/docs/app/building-your-application/upgrading/codemods#built-in-next-font) to safely and automatically rename your imports. | ||
- The WASM target for `next-swc` has been removed. |
File renamed without changes.
31 changes: 2 additions & 29 deletions
31
docs/03-pages/01-building-your-application/08-upgrading/03-version-14.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,7 @@ | ||
--- | ||
title: Version 14 | ||
description: Upgrade your Next.js Application from Version 13 to 14. | ||
source: app/building-your-application/upgrading/version-14 | ||
--- | ||
|
||
## Upgrading from 13 to 14 | ||
|
||
To update to Next.js version 14, run the following command using your preferred package manager: | ||
|
||
```bash filename="Terminal" | ||
npm i next@latest react@latest react-dom@latest eslint-config-next@latest | ||
``` | ||
|
||
```bash filename="Terminal" | ||
yarn add next@latest react@latest react-dom@latest eslint-config-next@latest | ||
``` | ||
|
||
```bash filename="Terminal" | ||
pnpm up next react react-dom eslint-config-next --latest | ||
``` | ||
|
||
```bash filename="Terminal" | ||
bun add next@latest react@latest react-dom@latest eslint-config-next@latest | ||
``` | ||
|
||
> **Good to know:** If you are using TypeScript, ensure you also upgrade `@types/react` and `@types/react-dom` to their latest versions. | ||
### v14 Summary | ||
|
||
- The minimum Node.js version has been bumped from 16.14 to 18.17, since 16.x has reached end-of-life. | ||
- The `next export` command is deprecated in favor of `output: 'export'`. Please see the [docs](https://nextjs.org/docs/app/building-your-application/deploying/static-exports) for more information. | ||
- The `next/server` import for `ImageResponse` was renamed to `next/og`. A [codemod is available](/docs/app/building-your-application/upgrading/codemods#next-og-import) to safely and automatically rename your imports. | ||
- The `@next/font` package has been fully removed in favor of the built-in `next/font`. A [codemod is available](/docs/app/building-your-application/upgrading/codemods#built-in-next-font) to safely and automatically rename your imports. | ||
- The WASM target for `next-swc` has been removed. | ||
{/* DO NOT EDIT. The content of this doc is generated from the source above. To edit the content of this page, navigate to the source page in your editor. You can use the `<PagesOnly>Content</PagesOnly>` component to add content that is specific to the Pages Router. Any shared content should not be wrapped in a component. */} |