Subscribe

DevelopmentNews

Next.js 12.2

Next.js 12.2 introduces stable Middleware and On-Demand ISR, experimental Edge SSR and API Routes, and more!

Published By Tim Neutkens · 1 min read

We're laying the foundation for the future of Next.js with 12.2:

Update today by running npm i next@latest .

We're excited to announce Middleware is now stable in 12.2 and has an improved API based on feedback from users.

Middleware allows you to run code before a request is completed. Based on the incoming request, you can modify the response by rewriting, redirecting, adding headers, or setting cookies.

To update to the newest API changes for Middleware, please see the migration guide .

Try Middleware for free on Vercel or when self-hosting using next start .

On-Demand Incremental Static Regeneration (ISR) allows you to update the content on your site without needing to redeploy.

This is an excerpt. The full article is published by Next.js Blog.

Continue reading at Next.js Blog