Reference

revalidatePath

Invalidates cached route responses for a normalized app-router path. During a request the invalidation is scoped to that route cache context; outside a request it is queued for the next cache access.

Signature

function revalidatePath(path: string): void