Next.js 15 RC: New Features and Improvements for Optimized Web Development

Ahmed Raza
7 min readJust now

The Next.js 15 Release Candidate (RC) introduces a variety of exciting updates and tools designed to enhance the development experience, streamline workflows, and boost web application performance. This version builds upon the strengths of previous Next.js versions while adding innovative capabilities that promise a more efficient developer experience.

What is Next.js?

Next.js is an open-source framework based on the popular ReactJS library, tailored to building scalable, high-performance web applications. Its features like Server-Side Rendering (SSR), Static Site Generation (SSG), Incremental Static Regeneration (ISR), code-splitting, and built-in image optimization make Next.js a powerful tool for web developers. Developed by Vercel, Next.js provides a structured development environment, allowing developers to focus on building applications without managing the complexities of the underlying infrastructure.

Key Updates in Next.js 15 RC

To get started with Next.js 15 RC, install it with the following command:

npm install next@rc react@rc react-dom@rc

Create an Empty Project: The command line interface (CLI) for Next.js 15 now includes an —empty flag. With npx create-next-app@rc --empty, developers can create a basic “Hello World” page without unnecessary setup, making it ideal for quickly starting a new project.

React 19 RC Integration

Next.js 15 RC is fully compatible with React 19 RC, including the new React Compiler currently in experimental mode. This integration offers major performance boosts by automatically optimizing code, reducing the need for certain manual optimizations with hooks like useMemo and useCallback. The React Compiler also improves hydration error handling, resulting in smoother user experiences.

Enhanced Caching Strategies

One of the standout updates in Next.js 15 RC is the revamped caching strategy. With staleTimes introduced in Next.js 14.2, developers could control client-side cache invalidation more precisely. Now, fetch requests, GET route handlers, and client-side navigations are not cached by default, ensuring fresher data for users. This update provides developers with greater control over caching, enhancing performance optimization. For example, specific caching can be enabled with the cache: 'force-cache' option:

fetch('https://...', { cache: 'force-cache' });

Partial Prerendering (Experimental)

Next.js 15 introduces Partial Prerendering (PPR), an experimental feature for a hybrid rendering approach. With PPR, developers can wrap dynamic components in a Suspense boundary, allowing parts of a page to load incrementally. Setting ppr: 'incremental' in next.config.js enables PPR:

const nextConfig = {
experimental: {
ppr: 'incremental',
},
};
module. Exports = nextConfig;

This approach immediately serves a static HTML shell and streams dynamic parts in the same HTTP request.

Here’s a detailed rewrite of the Next.js 15 Release Candidate (RC) blog in a clear and concise format:

Next.js 15 RC: New Features and Improvements for Optimized Web Development

The Next.js 15 Release Candidate (RC) introduces a variety of exciting updates and tools designed to enhance the development experience, streamline workflows, and boost web application performance. This version builds upon the strengths of previous Next.js versions while adding innovative capabilities that promise a more efficient developer experience.

What is Next.js?

Next.js is an open-source framework based on the popular ReactJS library, tailored to building scalable, high-performance web applications. Its features like Server-Side Rendering (SSR), Static Site Generation (SSG), Incremental Static Regeneration (ISR), code-splitting, and built-in image optimization make Next.js a powerful tool for web developers. Developed by Vercel, Next.js provides a structured development environment, allowing developers to focus on building applications without managing the complexities of the underlying infrastructure.

Key Updates in Next.js 15 RC

To get started with Next.js 15 RC, install it with the following command

npm install next@rc react@rc react-dom@rc

Create an Empty Project: The command line interface (CLI) for Next.js 15 now includes an —empty flag. With npx create-next-app@rc --empty, developers can create a basic “Hello World” page without unnecessary setup, making it ideal for quickly starting a new project.

React 19 RC Integration

Next.js 15 RC is fully compatible with React 19 RC, including the new React Compiler currently in experimental mode. This integration offers major performance boosts by automatically optimizing code, reducing the need for certain manual optimizations with hooks like useMemo and useCallback. The React Compiler also improves hydration error handling, resulting in smoother user experiences.

Enhanced Caching Strategies

One of the standout updates in Next.js 15 RC is the revamped caching strategy. With staleTimes introduced in Next.js 14.2, developers could control client-side cache invalidation more precisely. Now, fetch requests, GET route handlers, and client-side navigations are not cached by default, ensuring fresher data for users. This update provides developers with greater control over caching, enhancing performance optimization. For example, specific caching can be enabled with the cache: 'force-cache' option:

fetch('https://...', { cache: 'force-cache' });

Partial Prerendering (Experimental)

Next.js 15 introduces Partial Prerendering (PPR), an experimental feature for a hybrid rendering approach. With PPR, developers can wrap dynamic components in a Suspense boundary, allowing parts of a page to load incrementally. Setting ppr: 'incremental' in next.config.js enables PPR:

const nextConfig = {
experimental: {
ppr: 'incremental',
},
};
module.exports = nextConfig;

This approach immediately serves a static HTML shell and streams dynamic parts in the same HTTP request.

New next/after API (Experimental)

The next/after API in Next.js 15 RC introduces a way to perform secondary tasks or cleanup operations after the main response is complete. This approach provides flexibility for handling post-response actions like analytics logging or resource cleanup, enhancing code efficiency. Here’s how to use it:

Here’s a detailed rewrite of the Next.js 15 Release Candidate (RC) blog in a clear and concise format:

Next.js 15 RC: New Features and Improvements for Optimized Web Development

The Next.js 15 Release Candidate (RC) introduces a variety of exciting updates and tools designed to enhance the development experience, streamline workflows, and boost web application performance. This version builds upon the strengths of previous Next.js versions while adding innovative capabilities that promise a more efficient developer experience.

What is Next.js?

Next.js is an open-source framework based on the popular ReactJS library, tailored to building scalable, high-performance web applications. Its features like Server-Side Rendering (SSR), Static Site Generation (SSG), Incremental Static Regeneration (ISR), code-splitting, and built-in image optimization make Next.js a powerful tool for web developers. Developed by Vercel, Next.js provides a structured development environment, allowing developers to focus on building applications without managing the complexities of the underlying infrastructure.

Key Updates in Next.js 15 RC

To get started with Next.js 15 RC, install it with the following command:

npm install next@rc react@rc react-dom@rc

Create an Empty Project: The command line interface (CLI) for Next.js 15 now includes an —empty flag. With npx create-next-app@rc --empty, developers can create a basic “Hello World” page without unnecessary setup, making it ideal for quickly starting a new project.

React 19 RC Integration

Next.js 15 RC is fully compatible with React 19 RC, including the new React Compiler currently in experimental mode. This integration offers major performance boosts by automatically optimizing code, reducing the need for certain manual optimizations with hooks like useMemo and useCallback. The React Compiler also improves hydration error handling, resulting in smoother user experiences.

Enhanced Caching Strategies

One of the standout updates in Next.js 15 RC is the revamped caching strategy. With staleTimes introduced in Next.js 14.2, developers could control client-side cache invalidation more precisely. Now, fetch requests, GET route handlers, and client-side navigations are not cached by default, ensuring fresher data for users. This update provides developers with greater control over caching, enhancing performance optimization. For example, specific caching can be enabled with the cache: 'force-cache' option:

fetch('https://...', { cache: 'force-cache' });

Partial Prerendering (Experimental)

Next.js 15 introduces Partial Prerendering (PPR), an experimental feature for a hybrid rendering approach. With PPR, developers can wrap dynamic components in a Suspense boundary, allowing parts of a page to load incrementally. Setting ppr: 'incremental' in next.config.js enables PPR:

const nextConfig = {
experimental: {
ppr: 'incremental',
},
};
module.exports = nextConfig;

This approach immediately serves a static HTML shell and streams dynamic parts in the same HTTP request.

New next/after API (Experimental)

The next/after API in Next.js 15 RC introduces a way to perform secondary tasks or cleanup operations after the main response is complete. This approach provides flexibility for handling post-response actions like analytics logging or resource cleanup, enhancing code efficiency. Here’s how to use it:

New next/after API (Experimental)

The next/after API in Next.js 15 RC introduces a way to perform secondary tasks or cleanup operations after the main response is complete. This approach provides flexibility for handling post-response actions like analytics logging or resource cleanup, enhancing code efficiency. Here’s how to use it:

 import { unstable_after as after } from 'next/server';

export default function Layout({ children }) {
after(() => {
console.log('Response finished streaming');
});
return <>{children}</>;
}

To enable, add experimental.after in next.config.js.

Updates to create-next-app

The create-next-app tool, essential for generating new Next.js projects, now features a revamped design. Additionally, it includes an option to activate Turbopack, a high-speed bundler designed as an alternative to Webpack for faster build times. The setup is as follows:

"scripts": {
"dev": "next dev --turbo",
"build": "next build",
"start": "next start",
"lint": "next lint"
}

Bundling External Packages and Hydration Error Improvements

Next.js 15 brings stable configurations for bundling external packages, boosting cold-start performance and granting more control over how external dependencies are loaded in the App Router and Pages Router. Additionally, Next.js 15 further refines the handling of hydration errors. Now, developers benefit from clearer error messages, relevant code snippets, and troubleshooting advice, which makes debugging easier.

Final Thoughts

While Next.js 15 RC is still a release candidate, it offers ample potential for improving application performance and development efficiency. Early adopters can test these features to familiarize themselves and prepare for the official release, setting themselves up for a smooth transition to Next.js 15.

If you’re looking for high-performance web applications, exploring a Next.js development upgrade could be transformative. The latest features provide a solid foundation for building dynamic, optimized applications that can scale with ease.

This Next.js 15 RC release marks a significant step forward for the Next.js community. By trying out the new features, developers and companies alike can help shape the future of the framework while enjoying the enhanced flexibility and performance it brings.

This completes the rewritten blog. Feel free to upload it to your profile to showcase these advancements in web development with Next.js 15 RC.

--

--

Ahmed Raza
0 Followers

IT student and frontend developer, passionate about exploring Web 3.0, Generative AI, and the Metaverse.