ISR Implementation
Key aspects of this ISR implementation:
- Used export const revalidate = 30 to set 30-second revalidation
- Data fetching happens during regeneration
- RuleCMS widgets work seamlessly with ISR
- Static HTML is served immediately, then updated in background
When to Use ISR
- E-commerce product pages with pricing updates
- News sites with breaking news
- Content that changes periodically but not constantly
- When you need static performance with some dynamic data
- Large sites where rebuilding everything is expensive
ISR Configuration Options
Revalidation strategies:
- export const revalidate = 60 - Time-based (60 seconds)
- export const revalidate = false - Never revalidate
- export const revalidate = 0 - Revalidate on every request