Functions

Fetch next.revalidate

Positive seconds set a lifetime; 0 opts out; false represents indefinite caching subject to eviction. Avoid conflicting cache options. Source: https://nextjs.org/docs/app/api-reference/functions/fetch

Formal Syntax & Structure

nextjs syntaxnextjs
fetch(url, { next: { revalidate: seconds } })

Working Example

Example Snippetnextjs
const response = await fetch(url, { next: { revalidate: 60 } });
Next.js Reference