TecnoStack
Start a projectالعربية
Patch, Finish the migration and Schedule the upgrade tiles lead along a path toward a dashed next-release block.
Web & mobile

The support page still lists Next.js 15 in Maintenance LTS, while its two-year policy wording points to October 2026. Stay on the latest 15.5 patch, finish the async request API and caching changes, authorise at the data layer and schedule the move to Next.js 16.

In this article

Silent video with on-screen text. The transcript below repeats every screen and describes what it shows.

Watch on the video page

  1. 0:00–0:06

    Account page • Run the newest patch • Check the lockfile • Ship fixes within days

    The Account page badge stays fixed in its lane. A lockfile sheet of blank rows slides in and one row is highlighted. A cyan route runs from that row to a dashed socket on the account page; a patch tile lifts from the highlighted row, travels along the route and docks in the socket. No version number is shown.

  2. 0:06–0:12

    Account page • Clear the upgrade blockers • Await request data • No sync access left

    The Account page badge does not move. Three small request tiles wait by the account page; each gains a cyan waiting ring, then travels along its own lane into the page, where its slot lights up as it arrives. A fourth, stray tile without a ring drifts towards the page and fades out before reaching it.

  3. 0:12–0:18

    Account page • Decide every cache • Defaults changed • Some caches remain • Uncached by default now • Still cached • Decide per resource • Refresh event

    The Account page badge stays fixed. "Defaults changed" and "Some caches remain" appear. The article's cache-decisions figure enters: the "Uncached by default now" shelf of dashed empty boxes, the "Still cached" shelf of solid boxes, the "Decide per resource" card and the "Refresh event" trigger. A cyan trace runs from each shelf into the decision card and on along a thin link to the trigger; pulses follow each route and the trigger's button is ringed when they arrive. No box is filled.

  4. 0:18–0:24

    Account page • Keep each user’s data private • Two users, two languages • Never a shared hit

    The Account page badge stays fixed. Two separate lanes run in parallel, each carrying one user's data card to that user: one card's lines read left to right, the other's right to left. Between the lanes stands a dashed shared cache box; both cards pass it at the same time and neither enters it, so it stays empty.

  5. 0:24–0:30

    Account page • Authorise in the data layer • Actions are public endpoints • Check inside each action • Page component • Route handler • Server action • Data-access layer

    The Account page badge stays fixed. The article's data-access-layer figure enters: the "Page component", "Route handler" and "Server action" blocks with arrows into the "Data-access layer" band, and a plain storage drum that the band reaches by an arrow. The Server action block is outlined, and a ring closes inside it before its pulse leaves. Cyan pulses run from every block into the band and on to storage; no pulse goes around the band, and the storage lid is ringed when the last pulse arrives.

Next.js 15 maintenance in October 2026 comes down to three jobs. Keep the app on the newest 15.5 patch (15.5.28 was the release named in the 14 October security notice). Finish the async request API, caching and authorisation work that version 15 started. Then schedule the move to Next.js 16: the support page still lists 15 in Maintenance LTS, but its two-year wording points to October 2026.

This guide is for teams that run a production app on Next.js 15 today. If you are starting a new project, begin on the current Active LTS release and its own documentation.

Next.js 15 is in Maintenance LTS, which means it receives only critical bug fixes and essential security updates. Next.js 16 has been the Active LTS line since 21 October 2025 and gets new features, bug fixes and security patches. The newest minor release is 16.4, published on 6 October 2026.

CriterionNext.js 15Next.js 16
First stable release21 October 202421 October 2025
Listed support status (25 October 2026)Maintenance LTSActive LTS
What it receivesCritical bug fixes and essential security updatesFeatures, bug fixes, performance work and security patches
Newest patched version (14 October 2026)15.5.2816.4.1

The Next.js support policy says each major stays in Maintenance LTS for two years after its first release. For version 15 that points to October 2026, yet the supported-version table still lists it as Maintenance LTS on 25 October. The page gives no separate end date. Plan the migration now and verify the current status; do not infer a remaining grace period or claim that the page has already moved 15 to its unsupported list. Exceptional patches outside the policy are not a support commitment.

Keep the app on the latest 15.5 release and apply security updates within days of release. The October 2026 fixes shipped for version 15 as 15.5.28, and the advisory names no patch for older 15.x minors, so an app pinned to one has to move to 15.5 first.

On 14 October 2026 the Next.js team published an out-of-band security update for two critical remote code execution issues and one high-severity denial-of-service issue. The advisory describes separate conditions: Cache Components with a use cache function returning multiple typed arrays; SVG image optimisation on glibc-based Linux; and App Router with at least one Server Action. Follow the advisory's upgrade instructions and check your deployment against each issue's conditions, rather than treating every use of image optimisation as the same exposure.

A patch routine that works:

  1. Watch the source. Follow the Next.js security posts and the GitHub advisories for vercel/next.js, not a newsletter summary.
  2. Check what is installed. Run npm ls next and read the lockfile. A ^15.x range in package.json proves nothing about production.
  3. Patch on a branch, test, ship. Keep a short smoke test (sign-in, a form, a cached page, both languages) so you can ship a security release the day it lands.
  4. Check transitive fixes. The October update also named sharp 0.35.5 or later as the workaround for the image issue; confirm the version your build actually resolves.

Next.js 15 made request-specific APIs asynchronous: cookies(), headers(), draftMode(), params in layouts, pages, route handlers, default.js, generateMetadata and generateViewport, and searchParams in pages. Version 15 still allows synchronous access with warnings. Next.js 16 removes it, so any leftover synchronous access blocks the upgrade.

Run the codemod first, then do the review it cannot do for you:

npx @next/codemod@canary next-async-request-api .
  • Search for wrappers. Helpers that read cookies or headers for authentication, locale or feature flags are easy to miss. Make server helpers async and await the value before you use it.
  • Check locale handling. On a bilingual site the locale usually arrives through params, so await it in every page and metadata function that picks Arabic or English content.
  • Generate types. Next.js 15.5 added npx next typegen, which creates PageProps, LayoutProps and RouteContext helpers. TypeScript then flags code that treats a promise as a value.
  • Fix warnings instead of silencing them. Each sync-access warning in your logs is a line of upgrade work you have not done yet.

Next.js 15 switched GET Route Handlers and page segments in the client router cache from cached by default to uncached by default. Several caches stayed: metadata routes such as sitemap.ts stay static, shared layouts are not refetched, back and forward navigation restores from cache, and loading.js stays cached for five minutes.

So an endpoint that version 14 served from cache may now run on every request, while some client-side behaviour you assumed was fresh is still cached. Make every cache decision on purpose:

  1. Inventory route handlers, data-fetching functions and pages, and mark which ones relied on the old defaults.
  2. Decide per resource whether it is public, how stale it may be, and which event refreshes it, such as a CMS publish or a price change.
  3. Opt in explicitly where caching is right, for example export const dynamic = 'force-static' on a route handler, and connect revalidation to the events that change the data.
  4. Watch the origin. After each release, track request volume and response times on your server and data sources, so you spot a missing cache on a graph before your users feel it.

If your content comes from a headless CMS, revalidation belongs in the content model: when you are modelling entities and references, decide which fields trigger which cache tags.

Two shelves, Uncached by default now and Still cached, both feed a Decide per resource card linked to a Refresh event.

Next.js 15 made GET route handlers and client router page segments uncached by default, while metadata routes, shared layouts, back and forward navigation and loading.js stay cached. Decide each resource on purpose and tie its refresh to the event that changes the data.

Never let a response that belongs to one user land in a cache another visitor can receive. A headless storefront basket, account details or prices for a specific customer group are the usual culprits.

  • Keep user-specific reads out of any function or route you mark as cacheable.
  • If per-user caching is justified, include tenant, user and resource scope in the key, re-check authorisation before you return a hit, and invalidate when permissions change. A customer segment alone is not a safe key for individual account data.
  • Keep public, cacheable data and authorised per-user reads in separate functions, and confirm how your exact configuration renders the mix.
  • Test with two signed-in users in both languages after every release, including after revalidation, sign-out, role changes and tenant switching. Neither should ever see the other's data.

Put authorisation in a data-access layer that every Server Component, route handler and Server Action calls, and check permissions again inside each action. The Next.js team recommends a data-access layer for new projects in its guide to security in Next.js, so that audits can focus on one place.

Next.js 15 made Server Actions harder to reach by accident: unused actions are removed from the client bundle, and action IDs are unguessable and recalculated between builds. The release notes still say to treat Server Actions as public HTTP endpoints. In practice:

  • Read the user's identity from the server-side session, never from form fields or searchParams.
  • Validate every action argument, because TypeScript types are not enforced at runtime.
  • Use middleware for coarse routing, such as redirecting signed-out visitors, and never as the only gate. In Next.js 16 the middleware file becomes proxy, which is one more reason to keep real checks out of it.
  • Return only the fields a page needs, so sensitive columns never reach a Client Component.

A Page component, a Route handler and a Server action all reach the data through one Data-access layer.

Put authorisation in one data-access layer that every page, route handler and Server Action calls, then check permissions again inside each action. Treat Server Actions as public HTTP endpoints, and keep middleware for coarse routing only.

Most of the upgrade is mechanical if the version 15 work above is done. The version 16 upgrade guide lists these breaking changes, among others:

AreaNext.js 15Next.js 16
Request APIsAsync, with temporary sync access and warningsAsync only; sync access removed
Middlewaremiddleware.tsRenamed to proxy.ts; proxy runs on Node.js only, so edge middleware needs a decision
BundlerTurbopack stable for next devTurbopack default for dev and build; a custom webpack config fails the build unless you opt out
RuntimeNode.js 18.18 or laterNode.js 20.9 or later, TypeScript 5.1 or later
Cache APIsrevalidateTag(tag)revalidateTag(tag, profile); new updateTag and refresh
Lintingnext lintnext lint removed; run ESLint or Biome directly
ImagesEarlier defaultsminimumCacheTTL default 4 hours, qualities default [75], local IP optimisation blocked

Start with npx @next/codemod@canary upgrade latest, which handles the Turbopack config, the next lint migration and the middleware to proxy rename. It does not run the async request codemod, so run that separately if you skipped it. Then work through the guide's checklist; it states that a green build alone does not close runtime findings.

Budget the upgrade like any other change to a live site. Our guide to what drives a website quote breaks down the scope factors, and an upgrade with webpack plugins or edge middleware usually belongs in a separate line item. For a longer view of these trade-offs, see five early architecture choices that decide how painful each future upgrade will be.

A green build says nothing about real visitors. Compare field data before and after each patch or upgrade, by page template, device class and language. Google assesses Core Web Vitals at the 75th percentile of real page loads, with good thresholds of 2.5 seconds or less for Largest Contentful Paint, 200 milliseconds or less for Interaction to Next Paint and 0.1 or less for Cumulative Layout Shift.

Next.js 16 removed the size and First Load JS columns from next build output and points teams to Lighthouse and field metrics instead, so plan your monitoring around real-user data now. When a template regresses, our guide to fixing LCP on real devices walks through finding and fixing the slow element. Passing the thresholds is a user-experience goal; Google gives no ranking guarantee for it.

  • Production runs the newest 15.5 patch, and you can show it from the lockfile.
  • Someone owns the Next.js security feed and applies fixes within an agreed number of days.
  • No synchronous request API access or related warnings remain.
  • A written list says what is cached, for how long, and what refreshes it.
  • A two-user, two-language isolation test runs on every release.
  • Authorisation lives in the data layer and inside every Server Action.
  • Field metrics are tracked by template, device and language after each release.
  • An upgrade to Next.js 16 is scheduled, with webpack, middleware and Node.js version decisions written down.

Your next step is to check the installed version against 15.5.28 this week and put the move to 16 on the calendar. We build sites on Next.js and, through our Next.js website development service, scope maintenance and version upgrades as separate items, so you know who owns each patch and what it costs before work starts.

The full source review dates to 21 October 2026. We rechecked the support-policy wording and the 14 October security advisory on 25 October to clarify the support boundary and affected configurations. Support status and patched versions change often, so confirm them on nextjs.org before you act. The recommendations here are TecnoStack's own guidance.

Discuss your website, store, app or AI project in Arabic or English. We agree the scope before work starts.

Book a free scoping callCompare services and prices