Next.js 14.1 includes developer experience improvements including:
Upgrade today or get started with:
We've heard your feedback for improved clarity on how to self-host Next.js with a Node.js server, Docker container, or static export. We've overhauled our self-hosting documentation on:
With Next.js 14.1, we've also stabilized providing custom cache handlers for Incremental Static Regeneration and the more granular Data Cache for the App Router:
Using this configuration when self-hosting is important when using container orchestration platforms like Kubernetes, where each pod will have a copy of the cache. Using a custom cache handler will allow you to ensure consistency across all pods hosting your Next.js application.
For instance, you can save the cached values anywhere, like Redis or Memcached.
This is an excerpt. The full article is published by Next.js Blog.
Answers to common questions regarding this article's topic, architecture, and practical applications.
For vercel.com, a large Next.js application, we've seen: In v0.app, we identified an opportunity to optimize the way React Client Components are discovered and bundled in Turbopack - resulting in up to 61.5% faster initial compile time. This performance improvement was also observed in vercel.com.
Benefits / Advantages
Next.js with Turbopack now passes 5,600 development tests (94%), 600 more since the last update. You can follow the progress on areweturboyet.com. We have continued dogfooding next dev --turbo on all Vercel's Next.js applications, including vercel.com and v0.app. All engineers working on these applications are using Turbopack daily. We've found and fixed a number of issues for very large Next.js applications using Turbopack. For these fixes, we'v
General
Next.js 14.1 includes developer experience improvements including:
How It Works
Turbopack currently has in-memory caching, which improves incremental compilation times for Fast Refresh. However, the cache is currently not preserved when restarting the Next.js development server. The next big step for Turbopack performance is disk caching, which will allow the cache to be preserved when restating the development server.
General
We've heard your feedback for improved clarity on how to self-host Next.js with a Node.js server, Docker container, or static export. We've overhauled our self-hosting documentation on: With Next.js 14.1, we've also stabilized providing custom cache handlers for Incremental Static Regeneration and the more granular Data Cache for the App Router: module.exports = {
cacheHandler: require.resolve('./cache-handler.js'),
cacheMaxMemorySize: 0, //