From 63a578f1c35b6285dc98b9ae0b6281735043ae22 Mon Sep 17 00:00:00 2001
From: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
Date: Mon, 4 Dec 2023 14:55:46 +0000
Subject: [PATCH] Docs: Fix upgrade guide files (#59249)
- Add v14 update guide to /app router docs
- Fix duplicate /upgrading folders
---
.../09-upgrading/03-version-14.mdx | 36 +++++++++++++++++++
.../04-from-vite.mdx} | 0
.../08-upgrading/03-version-14.mdx | 31 ++--------------
3 files changed, 38 insertions(+), 29 deletions(-)
create mode 100644 docs/02-app/01-building-your-application/09-upgrading/03-version-14.mdx
rename docs/02-app/01-building-your-application/{08-upgrading/03-from-vite.mdx => 09-upgrading/04-from-vite.mdx} (100%)
diff --git a/docs/02-app/01-building-your-application/09-upgrading/03-version-14.mdx b/docs/02-app/01-building-your-application/09-upgrading/03-version-14.mdx
new file mode 100644
index 0000000000000..2eebac1ea6e18
--- /dev/null
+++ b/docs/02-app/01-building-your-application/09-upgrading/03-version-14.mdx
@@ -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 `Content` 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.
diff --git a/docs/02-app/01-building-your-application/08-upgrading/03-from-vite.mdx b/docs/02-app/01-building-your-application/09-upgrading/04-from-vite.mdx
similarity index 100%
rename from docs/02-app/01-building-your-application/08-upgrading/03-from-vite.mdx
rename to docs/02-app/01-building-your-application/09-upgrading/04-from-vite.mdx
diff --git a/docs/03-pages/01-building-your-application/08-upgrading/03-version-14.mdx b/docs/03-pages/01-building-your-application/08-upgrading/03-version-14.mdx
index c5fcaf32a88cd..8f66aa08e431a 100644
--- a/docs/03-pages/01-building-your-application/08-upgrading/03-version-14.mdx
+++ b/docs/03-pages/01-building-your-application/08-upgrading/03-version-14.mdx
@@ -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 `Content` component to add content that is specific to the Pages Router. Any shared content should not be wrapped in a component. */}