Incremental Static Regeneration (beta) has landed with #Nextjs 9.4. This is a mechanism to update existing pages, by re-rendering them in the background as traffic comes in. Inspired by SWR, this ensures traffic is served uninterrupted, always statically. #javascript
export async function getStaticProps() {
return {
props: await getDataFromCMS(),
// Next.js will attempt to re-generate the page:
// - when a request comes in
// - at most once every second
unstable_revalidate: 1
}
}