Clear preview data for Next.js' prerender mode
Clear preview data for Next.js' prerender mode
Optional options: { Optional path?: stringSend data json data in response
Revalidate a specific page and regenerate it using On-Demand Incremental Static Regeneration. The path should be an actual path, not a rewritten path. E.g. for "/blog/[slug]" this should be "/blog/post-1".
Revalidate a specific page and regenerate it using On-Demand Incremental Static Regeneration. The path should be an actual path, not a rewritten path. E.g. for "/blog/[slug]" this should be "/blog/post-1".
Optional opts: { Optional unstable_Send data any data in response
Set draft mode
Set draft mode
Set preview data for Next.js' prerender mode
Set preview data for Next.js' prerender mode
Optional options: { Optional maxSpecifies the number (in seconds) for the preview session to last for. The given number will be converted to an integer by rounding down. By default, no maximum age is set and the preview session finishes when the client shuts down (browser is closed).
Optional path?: stringSpecifies the path for the preview session to work under. By default, the path is considered the "default path", i.e., any pages under "/".
Next
APIroute response