“Next.js 9.5” Released

July 28, React framework Next.js released the latest version “Next.js 9.5”.

Next.js is a React framework developed by Vercel. It is released under the MIT License. Based on Vue.js, Node.js, and Webpack, Next.js is recommended for building desktop and mobile applications, and static websites. It provides features like automatic code splitting for faster page loads, built-in CSS and Sass support, and page-based routing system. Next.js 9.5 is the latest version after v 9.4, released in June.

Now Incremental Static Re-generation is generally available, which extends Static Site Generation methods introduced in 9.3. Incremental Static Re-generation enhances the capability of Incremental Static Generation, which updates static content after having built a site, and it becomes the mechanism to update the existing pages, by re-rendering them in the background.

This release introduces ‘basePath’, a new configuration option that makes it possible to host a project on a subpath of your domain. If basePath is configured, the project will automatically be routed from the provided path.

This release adds another new configuration option called ‘rewrites’, which makes it possible to map an incoming request to a different destination path, including external URLs. Also introduced are ‘redirects’ key and ‘headers’ property.

This release includes enhancements on Fast Refresh, a hot reload feature introduced in 9.4. Displaying errors and warnings has been improved. Also included is new documentation.

There are many more enhancements, including improved file cache efficiency. It also includes support for Webpack 5 (beta).

Next.js
https://nextjs.org/