The Next.js 15 Release Candidate (RC) is now available. This early version allows you to test the latest features before the upcoming stable release.
fetch
requests, GET
Route Handlers, and client navigations are no longer cached by defaultnext/after
(Experimental): New API to execute code after a response has finished streamingcreate-next-app
: Updated design and a new flag to enable Turbopack in local developmentTry the Next.js 15 RC today:
Terminal
npm install next@rc react@rc react-dom@rc
Note: You can view the Next.js 15 RC documentation at rc.nextjs.org/docs until Next.js 15 GA.
The Next.js App Router is built on the React canary channel for frameworks, which has allowed developers to use and provide feedback on these new React APIs before the v19 release.
Next.js 15 RC now supports React 19 RC, which includes new features for both the client and server like Actions.
Read the Next.js 15 upgrade guide, the React 19 upgrade guide, and watch the React Conf Keynote to learn more.
Note: Some third party libraries may not be compatible with React 19 yet.
The React Compiler is a new experimental compiler created by the React team at Meta. The compiler understands your code at a deep level through its understanding of plain JavaScript semantics and the Rules of React, which allows it to add automatic optimizations to your code. The compiler reduces the amount of manual memoization developers have to do through APIs such as useMemo
and useCallback
- making code simpler, easier to maintain, and less error prone.
With Next.js 15, we've added support for the React Compiler.
Install babel-plugin-react-compiler
:
Terminal
npm install babel-plugin-react-compiler
Then, add experimental.reactCompiler
option in next.config.js
:
next.config.ts
const nextConfig = { experimental: { reactCompiler: true, },}; module.exports = nextConfig;
Optionally, you can configure the compiler to run in "opt-in" mode as follows:
next.config.ts
const nextConfig = { experimental: { reactCompiler: { compilationMode: 'annotation', }, },}; module.exports = nextConfig;
Note: The React Compiler is currently only possible to use in Next.js through a Babel plugin, which could result in slower build times.
Learn more about the React Compiler, and the available Next.js config options.
Next.js 14.1 made improvements to error messages and hydration errors. Next.js 15 continues to build on those by adding an improved hydration error view. Hydration errors now display the source code of the error with suggestions on how to address the issue.
For example, this was a previous hydration error message in Next.js 14.1: