Skip to content

VexRevalidateRequest

VexRevalidateRequest = VexRevalidateCollectionRequest | VexRevalidateDocumentsRequest

Defined in: packages/core/src/revalidate/types.ts:116

Request body accepted by the revalidation route.

Declared here rather than in @vexcms/next because both ends of the wire consume it: the route that parses it (createVexRevalidateRoute, @vexcms/next) and the two hooks that build it (useVexMutation, useVexRevalidate, @vexcms/react). Neither of those packages depends on the other, so the contract lives in the one below both (P-010).