Skip to content

Web Development · Next.js

Next.js 15 End of Life: Upgrade to 16 Before Oct 21

Next.js 15 stops getting security patches on October 21, 2026. Here is the upgrade path to 16: codemods, the breaking changes that bite, and a safe rollout.

Abhishek Gupta

Abhishek Gupta

6 min read

A weathered wooden footbridge with missing planks beside a curved concrete bridge over a calm river at dusk

Sponsored

Share

Next.js 15 reaches end of life on October 21, 2026, which is 17 days from now. After that, it gets no bug fixes and no security patches. If you are still on 15.x, the supported move is Next.js 16, and most apps can get there in a day or two with the official codemods plus a careful look at a handful of breaking changes.

Your site will not stop working on the 21st. The risk is slower: the next vulnerability disclosed in Next.js will be fixed in 16 and not in 15. Next.js now runs scheduled security releases, and its latest pair, 16.3.8 and 15.5.27, shipped on September 30. See our write-up of the September security release and the monthly security release program for how often these land.

What end of life means in the Next.js support policy

Per the Next.js support policy, each major version gets Active LTS from release until the next major ships, then Maintenance LTS for two years from its initial release. Maintenance LTS covers only critical bug fixes and essential security updates. When that window closes, the version is EOL and receives nothing.

VersionReleasedStatus
16.xOctober 2025Active LTS (latest 16.3.8)
15.xOctober 21, 2024Maintenance LTS, EOL October 21, 2026

The official recommendation is to run the latest Active LTS, which is 16, or the current Maintenance LTS for as long as it lasts.

Step 0: check your Node.js and TypeScript versions

Next.js 16 requires Node.js 20.9.0 or newer (Node 18 is out), TypeScript 5.1.0 or newer, and Chrome, Edge and Firefox 111+ or Safari 16.4+. Fix the runtime before you touch the framework. If your CI image or hosting platform is still on Node 18, that is your first pull request. Our Node.js 24 to 26 upgrade checklist is a good companion if you are bumping Node at the same time.

Step 1: run the codemods

On a clean branch:

npx @next/codemod@canary upgrade latest

The official guide says this codemod will:

  • Move experimental.turbopack to a top-level turbopack option in next.config.
  • Migrate from next lint to the ESLint CLI.
  • Rename the deprecated middleware convention to proxy.
  • Remove unstable_ prefixes from stabilized APIs.
  • Remove experimental_ppr route segment config.

It does not run every migration. If any code still reads params, searchParams, cookies(), headers() or draftMode() synchronously, which Next 15 tolerated for compatibility, run this one too:

npx @next/codemod@canary next-async-request-api .

To make the types honest, generate the helpers (available since 15.5):

npx next typegen

Then a page can be typed like this:

export default async function Page(props: PageProps<'/blog/[slug]'>) {
  const { slug } = await props.params
  const query = await props.searchParams
  return <h1>Blog Post: {slug}</h1>
}

Step 2: the breaking changes that fail builds

Async request APIs are fully async

Version 15 deprecated synchronous access. Version 16 removes it. cookies, headers, draftMode, params and searchParams must be awaited. The same applies to the props of opengraph-image, twitter-image, icon and apple-icon functions, and to the id that sitemap functions receive, which is now a promise of a string. If you compute id * 50000 in a sitemap generator, you now need Number(await id) * 50000.

Turbopack is the default, and webpack configs fail the build

next dev and next build use Turbopack now. If you have a custom webpack function in next.config (or a plugin adds one), next build fails on purpose. You have three options: build with next build --turbopack and ignore the config, migrate the config to Turbopack options, or keep webpack with next build --webpack.

The conservative rollout is Turbopack in development and webpack in production for the first release:

{
  "scripts": {
    "dev": "next dev",
    "build": "next build --webpack",
    "start": "next start"
  }
}

Then switch the build over once staging looks right. Our post on Turbopack’s persistent build cache covers what you gain.

Parallel routes need default.js

Every parallel route slot now requires an explicit default.js, or the build fails. To keep the old behavior, add a file that returns null or calls notFound():

// app/@modal/default.tsx
export default function Default() {
  return null
}

Removed features

  • next lint is gone and next build no longer lints. A codemod, next-lint-to-eslint-cli, migrates you to the ESLint CLI.
  • serverRuntimeConfig and publicRuntimeConfig are removed. Use environment variables, with NEXT_PUBLIC_ for client values.
  • AMP support is removed entirely.
  • experimental.dynamicIO and experimental.useCache flags are removed. Migrate to cacheComponents only if you were using them. It is not a rename-only change.
  • revalidateTag('posts') with one argument is deprecated. Pass a cache life profile: revalidateTag('posts', 'max'). Use updateTag in Server Actions when a user needs to see their own write immediately.

Step 3: defaults that change without an error

These do not fail the build, which is why they cause surprises in production.

SettingNext 15Next 16
images.minimumCacheTTL60 seconds4 hours
images.qualitiesany[75] only
images.imageSizesincluded 1616 removed
images.maximumRedirectsunlimited3
Local image with query stringallowedneeds images.localPatterns.search
Smooth scrolling on navigationNext overrode itNext leaves your CSS alone

The image qualities change is the one most likely to be visible. A quality={90} prop is coerced to the nearest allowed value, 75. If designers noticed the difference, add the values you use to images.qualities. Also, images.domains is deprecated in favor of remotePatterns, and local-network image sources are blocked unless you set dangerouslyAllowLocalIP, which you should only do inside a private network.

If your app relied on Next overriding scroll-behavior: smooth during route transitions, add data-scroll-behavior="smooth" to the <html> element to get the old behavior back.

A rollout that will not hurt

  1. Branch, bump Node, run upgrade latest, run the async codemod.
  2. Build with --webpack first to separate framework breakage from bundler breakage.
  3. Fix type errors from the newly awaited APIs.
  4. Deploy to a preview and compare image output and caching headers against production.
  5. Switch the build to Turbopack in a second pull request.
  6. Ship before October 21. If you cannot, at least upgrade to 15.5.27 so you carry the last patches.

If you are deciding whether a big migration is worth it for an older app at all, our App Router guide for 15 and 16 explains what 16’s model buys you.

The takeaway

Put the upgrade on the calendar this week, not on the 20th. The codemods cover the mechanical changes, the build-failing items are four or five specific things you can grep for, and the silent defaults are a staging check. Seventeen days is enough time to do it carefully.

Frequently asked questions

What happens to my app on October 21, 2026?
Nothing breaks that day. The app keeps running. What stops is support: Next.js 15 receives no further bug fixes or security patches, so any vulnerability disclosed afterward stays unfixed on that major version.
What is the minimum Node.js version for Next.js 16?
Node.js 20.9.0. Node.js 18 is no longer supported. TypeScript users need 5.1.0 or newer, and the supported browsers are Chrome, Edge and Firefox 111 and up, and Safari 16.4 and up.
Do I have to move to Turbopack?
Not immediately. Turbopack is the default for next dev and next build in version 16, but you can keep webpack with the --webpack flag. If you have a custom webpack config and run next build without choosing, the build fails on purpose.
Will the codemod do the whole upgrade?
It handles the mechanical parts: turbopack config location, the next lint migration, middleware to proxy, and removing unstable_ prefixes. It does not run every codemod, so run the async request APIs codemod separately and test the result.

Sources

Sponsored

Sponsored

Discussion

Join the conversation.

Comments are powered by GitHub Discussions. Sign in with your GitHub account to leave a comment.

Sponsored