hatch-surf/node_modules/next/dist/docs/01-app/02-guides/upgrading/version-14.md
Riley Zhang df378d33ef
Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Merge GitHub main into Gitea repo (allow unrelated histories)
Resolved conflicts by taking GitHub versions for:
- .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml

Kept deploy.sh updated to:
- Pull from GitHub (primary source)
- Push to Gitea (push-mirror)
- Build from site/ directory (GitHub structure)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-25 05:20:46 +02:00

1.8 KiB

title nav_title description
How to upgrade to version 14 Version 14 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:

npm i next@next-14 react@18 react-dom@18 && npm i eslint-config-next@next-14 -D
yarn add next@next-14 react@18 react-dom@18 && yarn add eslint-config-next@next-14 -D
pnpm i next@next-14 react@18 react-dom@18 && pnpm i eslint-config-next@next-14 -D
bun add next@next-14 react@18 react-dom@18 && bun add eslint-config-next@next-14 -D

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 has been removed in favor of output: 'export' config. Please see the docs for more information.
  • The next/server import for ImageResponse was renamed to next/og. A codemod is available 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 to safely and automatically rename your imports.
  • The WASM target for next-swc has been removed.