Skip to main content

Version & Platform Support

Framework behavior changes quickly enough that version context is part of engineering correctness. This page defines the baseline used throughout the handbook.

Current verified baseline​

Verified: July 28, 2026

ItemHandbook baseline
Next.js npm latest16.2.12
Supported production line16.x Active LTS
Next.js 16.3Preview/canary β€” not stable
Stable React docsReact 19.2
App Router React integrationFramework-managed React Canary including stable React 19.2 behavior
Minimum Node.js20.9.0
Minimum TypeScript for Next.js 165.1.0
Chrome111+
Edge111+
Firefox111+
Safari16.4+
Default bundlerTurbopack for next dev and next build

The latest stable patch matters. npm moved the latest tag to 16.2.12 after the July 20 security release that had recommended 16.2.11 at publication. Production dependency policy should therefore verify the current stable patch rather than relying on a handbook snapshot or the phrase β€œNext.js 16.”

Stable, preview, and canary​

Treat release channels as different contracts:

  • Stable / Active LTS β€” appropriate baseline for production and this handbook.
  • Preview β€” public preview of an upcoming release. Useful for evaluation, not assumed by handbook examples.
  • Canary β€” rapidly changing prerelease channel. APIs may change before stable.

At this snapshot, 16.3 remains preview/canary and is excluded from the stable curriculum unless a later verification shows it has shipped to npm latest.

App Router and React versions​

There is an important nuance behind the phrase β€œNext.js uses React 19.2.”

The stable React documentation currently targets React 19.2, but the Next.js App Router uses a framework-managed React Canary build that includes stable React 19 behavior plus framework-facing features being validated ahead of future React releases. Your application should still declare react and react-dom dependencies for tooling and ecosystem compatibility.

This handbook therefore separates:

  • React public stable APIs β€” explained according to React's stable documentation;
  • React features exposed through stable Next.js App Router releases β€” explained when Next.js documents them as supported;
  • React/Next.js canary experiments β€” never presented as stable contracts.

What changed in the Next.js 16 generation?​

These changes materially affect how modern examples should be written.

Turbopack is the default​

Next.js 16 made Turbopack the default for both development and production builds. Webpack is still available with --webpack when a dependency or build integration requires it.

Next.js 16.1 made Turbopack filesystem caching stable and enabled by default for development. Next.js 16.2 then added substantial Turbopack and rendering improvements.

middleware.ts became proxy.ts​

Next.js 16 renamed the Middleware file convention to Proxy to communicate that it sits at a request/network boundary. New handbook examples use proxy.ts and the proxy() function.

Do not infer that Proxy is an authorization layer. It can perform early request checks and routing decisions, but protected operations must still authorize access where the data-changing or data-reading operation occurs.

Cache Components introduced a new opt-in model​

Next.js 16 introduced Cache Components behind cacheComponents: true. It combines the modern use cache model with partial prerendering behavior.

In Next.js 16.2, Cache Components remains opt-in. The handbook therefore teaches:

  1. stable App Router behavior when Cache Components is not enabled;
  2. the Cache Components model when it is enabled;
  3. migration and architectural differences between the two.

That prevents a common documentation error: teaching an opt-in model as though every Next.js 16 application behaves that way by default.

Request APIs are asynchronous​

Modern App Router code treats request-bound values such as route params and relevant request APIs as asynchronous where the current API requires it. Examples do not copy old synchronous patterns from Next.js 13/14 tutorials.

React Compiler integration is stable, but optional​

Next.js 16 describes its React Compiler integration as stable. That does not mean every application must enable it, nor does it remove the need to understand component purity, state architecture, and profiling.

Linting is separate from next build​

Next.js 16 removed the next lint command and production builds no longer run linting for you. Run ESLint, Biome, or another chosen linter explicitly in development and CI.

Image defaults and controls changed​

Next.js 16 changed several image-optimization contracts that older tutorials commonly teach incorrectly:

  • Image gained the explicit preload prop and the older priority prop is deprecated.
  • image quality choices are constrained by images.qualities; the default list is [75].
  • the default minimum image cache TTL is 14,400 seconds (4 hours).
  • local image query strings require deliberate local-pattern policy rather than old permissive assumptions.
  • optimization of local/private IP sources is blocked by default.
  • remote source redirects are bounded; the default maximum is 3.
  • newer stable resource controls include source-response and disk-cache limits.

Phase 12 teaches these as version-sensitive production contracts rather than generic <img> advice.

16.2 improves debugging and platform integration​

Next.js 16.2 added or stabilized several production-oriented improvements, including faster development startup/rendering, improved hydration diagnostics, Server Function development logging, next start --inspect, and the stable Adapter API for deployment-platform integrations.

Core framework vs deployment platform​

A feature can belong to different layers:

Application code
↓
React component/rendering model
↓
Next.js framework contracts
↓
Node.js / Web platform runtime
↓
Hosting adapter / server / CDN
↓
Deployment provider infrastructure

For example:

  • page.tsx is a Next.js convention.
  • useState is a React API.
  • Request and Response are Web APIs.
  • process.env is a Node.js/runtime capability.
  • a provider's geographic regions, CDN cache topology, function limits, and analytics product are platform behavior.

We do not silently turn a Vercel platform feature into a framework requirement.

Creating against the current stable release​

Use the latest tag when starting a new project, then commit the resulting lockfile:

pnpm create next-app@latest my-app

For Next.js 16.1 and later, the framework also provides an upgrade command:

pnpm next upgrade

Before a production upgrade, read the relevant version guide, run the production build and tests, and verify rendering, caching, request handling, image behavior, and deployment behavior rather than assuming semver alone captures every operational change.

Dependency policy​

A production repository should answer:

Which exact Next.js patch is locked?
Which support line is it on?
Which security advisories apply?
Which preview/canary flags are enabled?
When was the last stable-doc re-audit?

Do not use ^16 as a substitute for release management.

The lockfile, deployment artifact, and CI build should make the exact framework version reproducible.

Version-sensitive topics in this handbook​

Re-check official docs before relying on these areas during upgrades:

  • caching and revalidation
  • static, dynamic, and partial prerendering behavior
  • cookies(), headers(), params, and other request APIs
  • Server Functions and mutation APIs
  • Proxy and runtime constraints
  • Turbopack compatibility
  • React Compiler integration
  • route segment configuration
  • image defaults, loader security, and cache controls
  • font/script optimization behavior
  • experimental third-party helpers
  • deployment adapters and self-hosting behavior

Stable does not mean universal​

A stable framework API can still depend on:

browser support
Node/runtime capability
reverse-proxy behavior
CDN cache configuration
filesystem persistence
third-party provider contracts

The handbook separates stable API status from operational portability.

For example, the Image component is stable, but a pure static export cannot depend on the default on-demand Next.js image optimizer because there is no runtime Next.js server to perform that work.

Primary sources​

Exercise​

For an existing Next.js project, answer these before changing code:

  1. What exact next, react, and react-dom versions are locked?
  2. Is it App Router-only, mixed, or Pages Router-only?
  3. Is cacheComponents enabled?
  4. Does the project run Turbopack or opt back into Webpack?
  5. Which Node.js version does production actually use?
  6. Does CI run linting and type checking explicitly?
  7. Which behaviors come from the hosting provider rather than Next.js core?
  8. Which image quality/source/cache controls differ from the Next.js 16.2 defaults?
  9. Does the app use any experimental packages or preview flags?

If you cannot answer those questions, you do not yet have enough version context to debug framework behavior safely.