How it works: This page was generated at build time, but it regenerates every 60 seconds when there's traffic. You get the speed of SSG with the freshness of SSR!
Revalidation: Every 60 seconds (when visited)
Pros: Fast like SSG, updates automatically, scalable
Cons: Slightly more complex, eventual consistency
@Bret
Sincere@april.biz
Gwenborough
@Antonette
Shanna@melissa.tv
Wisokyburgh
@Samantha
Nathan@yesenia.net
McKenziehaven
@Karianne
Julianne.OConner@kory.org
South Elvis
@Kamren
Lucio_Hettinger@annie.ca
Roscoeview
@Leopoldo_Corkery
Karley_Dach@jasper.info
South Christy
@Elwyn.Skiles
Telly.Hoeger@billy.biz
Howemouth
@Maxime_Nienow
Sherwood@rosamond.me
Aliyaview
@Delphine
Chaim_McDermott@dana.io
Bartholomebury
@Moriah.Stanton
Rey.Padberg@karina.biz
Lebsackbury
export default async function ISRPage() {
// Fetch happens at build time, then revalidates every 60 seconds
const response = await fetch('https://api.example.com/users', {
next: { revalidate: 60 } // ISR with 60 second revalidation
})
const users = await response.json()
return <div>{/* Render users */}</div>
}