Next.js 13.1 has just been released and it brings with it a number of exciting new features and improvements.
One of the most notable changes in this release is the addition of automatic static optimization. This feature allows Next.js to automatically optimize pages for static rendering, without the need for any configuration on the developer's part. This can significantly improve the performance of a Next.js app, as static pages are generally faster to render than dynamic ones.
Another major change in Next.js 13.1 is the addition of automatic code splitting for APIs. This means that Next.js will now automatically split the code for API routes into separate chunks, which can help improve the performance of an app by reducing the amount of JavaScript that needs to be loaded on initial page load.
Other notable improvements in Next.js 13.1 include the ability to use the create-next-app command to create a new Next.js app with TypeScript, improved debugging experiences with the --inspect flag, and support for the import.meta.env proposal in Next.js.
Overall, the release of Next.js 13.1 is a major step forward for the popular JavaScript framework, and developers should definitely consider upgrading to take advantage of these new features and improvements.