CodeZettaInterview Hub

Next.js · ISR · Junior · Live Coding

How do you set a revalidate interval in App Router?

Short Interview Answer

Export `revalidate` segment config or use fetch `next: { revalidate: seconds }`.

Detailed Explanation

Time-based revalidation refreshes after TTL. Prefer tagging + on-demand revalidation for editorial workflows when possible.

Example

export const revalidate = 60;

Did you know this answer?