Next.js 15 end of life: plan your move to Next.js 16
Next.js 15 end of life is now set for 31 January 2027. What changes in Next.js 16, a step-by-step upgrade route with code, and fixes for common errors.
If your website runs on Next.js 15, plan the move to Next.js 16 now. Next.js 15 was due to leave support in October 2026, and the Next.js team extended security releases until the thirty-first of January 2027. After that, new security fixes only reach Next.js 16 and later.
Most of the upgrade is mechanical, but a few changes touch your own code. Request data such as page parameters and cookies must now be awaited. Middleware becomes a file called proxy. Turbopack is the default bundler, so custom webpack settings need attention. The next lint command is gone, AMP is removed, and some image defaults have changed.
Here is the route we follow. First, patch the live site to the latest Next.js 15 release and audit Node.js versions and build packages. Second, run the official codemod on its own branch. Third, fix what it misses. Fourth, test forms, login and checkout on a preview. Fifth, release with a rollback ready.
Ask your developer to schedule the upgrade well before the end of January, and keep it separate from any redesign.
If your website, store front end or customer portal runs on Next.js 15, the Next.js 15 end of life date is now the deadline to plan around. This guide is for business owners and in-house teams who rely on an agency or developer to keep a Next.js site healthy. You'll learn what changed in the support policy, what actually breaks when you move to Next.js 16, the order we follow for the upgrade, with code, and how to fix the errors teams hit along the way.
What Next.js 15 end of life means for your site
Next.js 15 was due to leave support on 21 October 2026, two years after its release. The Next.js team then extended its Maintenance LTS: according to the official Next.js support policy, security releases for Next.js 15 continue until 31 January 2027. The November 2026 security release, published on 3 November, still shipped a patched 15.5.29 alongside 16.4.5, which we covered in our post on applying the November 2026 Next.js patches.
So nothing stops working today. What changes after January is quieter: when the next security issue is found, the fix will land in Next.js 16 and later, and a Next.js 15 site will have to take the whole upgrade under time pressure. The extension is breathing room, not a reason to wait.
Maintenance LTS also only ever covered critical bug fixes and security updates. New features and performance work since October 2025 have gone into the 16.x line, including the Cache Components work in Next.js 16.4.
What actually changes between Next.js 15 and 16
Most of the Next.js 16 migration is mechanical. A few changes reach into code your team wrote by hand, and those are the ones that decide how long the job takes.
-
Request data is async only. Next.js 15 let you read
params,searchParams,cookies()andheaders()synchronously with a warning. Next.js 16 removes that fallback, so every read has to be awaited. This exists so the framework can render the static parts of a page before it knows anything about the request. -
Middleware becomes proxy. The
middleware.tsfile is deprecated in favour ofproxy.ts, with a function calledproxy. The new name describes what it really does: sit in front of your routes and redirect, rewrite or set headers. Proxy runs on the Node.js runtime. -
Turbopack is the default bundler for both
next devandnext build. If your project has a customwebpackfunction innext.config, the build stops and tells you, rather than silently ignoring it. -
next lintis gone, andnext buildno longer runs linting. You call ESLint or Biome directly. -
Removals: AMP support,
serverRuntimeConfigandpublicRuntimeConfig, and the experimentalppranddynamicIOflags (replaced bycacheComponents). -
Image defaults shifted.
next/imagenow caches optimised images longer by default, allows only quality 75 unless you list others inimages.qualities, and needsimages.localPatternsfor local images with query strings. - Platform minimums: Node.js 20.9 or later and TypeScript 5.1 or later. In practice we move projects to a current Node.js LTS at the same time; our Node.js 26 LTS upgrade plan covers that side.
How to upgrade Next.js 15 to 16, step by step
1. Audit before you touch anything
Make sure production is on the latest 15.5.x patch first, so you are upgrading from a safe base. Then list three things: the Node.js version on every server and CI runner, any custom webpack config, and packages that hook into the build (CSS-in-JS, MDX, analytics and monitoring SDKs). Check each package's changelog for Next.js 16 support.
2. Run the codemod on its own branch
git checkout -b upgrade/next-16
npx @next/codemod@canary upgrade latest
The codemod bumps next, react and react-dom, renames middleware to proxy, moves Turbopack config to the top level and converts many synchronous request reads. Commit its output separately from your manual fixes so reviewers can tell them apart.
3. Fix what the codemod can't
Pages that read params need to await them. This is the Next.js 16 shape for an App Router page:
// app/blog/[slug]/page.tsx
export default async function Page({
params,
}: {
params: Promise<{ slug: string }>
}) {
const { slug } = await params
const post = await getPost(slug)
return <article>{post.title}</article>
}
If the codemod didn't rename your middleware, this is the minimal proxy.ts at the project root (change the cookie name and matcher to suit your app):
// proxy.ts
import { NextResponse, type NextRequest } from 'next/server'
export function proxy(request: NextRequest) {
if (!request.cookies.has('session')) {
return NextResponse.redirect(new URL('/login', request.url))
}
return NextResponse.next()
}
export const config = { matcher: ['/account/:path*'] }
Then replace "lint": "next lint" in package.json with "lint": "eslint .", and add a default.js to every parallel route slot, which Next.js 16 now requires for the build to pass.
4. Test on a preview, not on your laptop
Deploy the branch to a preview environment that matches production. Click through the flows that earn money: forms, login, checkout or quote requests, redirects from old URLs and anything behind the proxy. Compare a few product or article images side by side with production.
5. Release with a way back
Ship at a quiet time, watch server logs and error tracking for the first day, and keep the previous build ready to redeploy. Only retire the 15.5.x branch once the new build has been stable for a while.
What we've learned from Next.js 16 migrations
The framework upgrade is rarely the slow part. The time goes into third-party packages that haven't caught up, custom webpack tweaks someone added years ago, and the absence of tests around the pages that matter. We'd recommend upgrading in the next few weeks for most marketing sites and stores. We'd take more care, and possibly a staged approach, for large apps with heavy webpack customisation, where moving bundlers deserves its own piece of work. In that case, next build --webpack keeps the old bundler while you finish the rest.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Build stops with a message about a webpack configuration | Custom webpack config while Turbopack is the default |
Move loaders to the turbopack config, or build with --webpack for now |
Errors reading slug or another field of undefined |
Code still reads params or cookies() synchronously |
Await them in server code; use React.use() in client components |
| Redirects or auth checks stop running | Middleware file or export not renamed, or it relied on the Edge runtime | Rename to proxy.ts with a proxy export; review Edge-only APIs |
| Some images return errors or look different | Unlisted quality values or local images with query strings | Add images.qualities and images.localPatterns in next.config |
| CI fails on the lint step | next lint no longer exists |
Call ESLint or Biome directly in the script |
Questions people ask
Is a Next.js 15 site unsafe after January 2027?
Not on the day itself. It simply stops receiving security fixes, so any issue found afterwards stays open on Next.js 15. The longer a site sits there, the more it depends on luck.
Should we wait for Next.js 17?
We wouldn't. Next.js 17 has no announced date, and the Next.js team has said Cache Components will become the default there. Getting to 16 now makes that later step smaller.
Do we need to change hosting?
Usually not. Check that your host supports Next.js 16 and your chosen Node.js version, and that build images on your CI use the same version.
Why the Next.js 16 migration matters for your business
A Next.js site is often where leads arrive and orders start. Running it on a version that no longer gets security fixes is a business risk, and an emergency upgrade after a disclosure costs more attention than a planned one. Done now, the move also gives you the build speed and caching work the 16.x line has gained.
A short checklist to take to your developer:
- Patch production to the latest 15.5.x today.
- Audit Node.js versions, webpack config and build-time packages.
- Run the codemod on a branch, then fix params, proxy, lint and images.
- Test the money flows on a preview and release with a rollback ready.
- Finish well before 31 January 2027.
If you'd like a hand planning or running the move, our Next.js development team can help, or you can tell us about your project.
(over to you)
Planning a build like this?
Tell us what you're building and we'll come back with ideas and next steps.
Keep reading
All articles
React & Next.js
· 5 min read
Headless CMS for Next.js: Sanity vs Contentful vs Payload vs Strapi
Read article
React & Next.js
· 8 min read
Back button hijacking: find and fix it before Google does
Read article
React & Next.js
· 8 min read
Chrome Web Install API: adding an install button to your web app
Read article
