Subscribe

DevelopmentNews

Next.js 12.1

Next.js 12.1 introduces on-demand ISR, support for styled-components and Relay, zero-config Jest support, and more!

Published By Tim Neutkens · 1 min read

We're excited to release one of our most requested features with Next.js 12.1:

Update today by running npm i next@latest .

Next.js now exposes a function unstable_revalidate() allowing you to revalidate individual pages that use getStaticProps . This was one of our most requested features since we introduced Incremental Static Regeneration (ISR) in Next.js 9.5.

Since ISR was released, we've seen companies like Tripadvisor , Parachute , HashiCorp, and more drastically improve their build times while retaining incredible performance. However, we've heard your feedback on interval-based revalidations and are excited to provide more flexibility.

Currently, if you set a revalidate time of 60 , all visitors will see the same generated version of your site for one minute.

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

Continue reading at Next.js Blog