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 broadcast to every live route cache registered in this process, and later reads wait for their cache's invalidation to finish.

Signature

function revalidatePath(path: string): void