Next.js 16 Release

Next.js 16 marks a significant milestone with the stable release of Turbopack, the introduction of the Build Adapters API (alpha), and major improvements to caching, routing, and developer experience.

Build Adapters API (Alpha)

The Build Adapters API is a groundbreaking new feature that enables deployment platforms and custom build integrations to hook directly into the Next.js build process. This addresses long-standing pain points for hosting providers like Netlify, Cloudflare, and AWS Lambda, who previously had to reverse-engineer undocumented manifests and patch Next.js internals.

Key Benefits

Implementation

To use an adapter, configure it in your Next.js configuration:

// next.config.js
const nextConfig = {
  experimental: {
    adapterPath: require.resolve('./my-adapter.js'),
  },
};

module.exports = nextConfig;

The adapter API provides hooks like modifyConfig (pre-build) and onBuildComplete (post-build) to customize the build process. Learn more in the RFC announcement.

Major Features

Turbopack (Stable)

Turbopack is now the default bundler, delivering:

Developers can opt out with --webpack if needed.

Cache Components

New opt-in caching using the "use cache" directive with automatic cache key generation. This completes the Partial Pre-Rendering (PPR) story and provides unified caching behavior.

proxy.ts (Replaces middleware.ts)

The new proxy.ts file clarifies the network boundary and runs exclusively in the Node.js runtime. The previous middleware.ts is now deprecated.

Enhanced Routing & Navigation

Improved Caching APIs

React 19.2 & React Compiler

Full support for React 19.2 features including:

The React Compiler is now stable, providing built-in automatic memoization via Babel plugin integration.

Next.js DevTools MCP

Model Context Protocol integration enables AI-assisted debugging with unified logs, automatic error access, and contextual page awareness.

Developer Experience

Breaking Changes

Version Requirements

Removed Features

Notable Changes

Upgrade Instructions

Use the automated codemod for the smoothest upgrade experience:

npx @next/codemod@canary upgrade latest

Or upgrade manually:

npm install next@latest react@latest react-dom@latest

For new projects:

npx create-next-app@latest

Source: Next.js Blog