revalidateDelete() — supabase Function Reference
Architecture documentation for the revalidateDelete() function in revalidateEvent.ts from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/cms/src/collections/Events/hooks/revalidateEvent.ts lines 40–54
export const revalidateDelete: CollectionAfterDeleteHook<Event> = async ({
doc,
req: { context },
}) => {
if (!context.disableRevalidate) {
const path = `/events/${doc?.slug}`
try {
const { revalidatePath, revalidateTag } = await import('next/cache')
revalidatePath(path)
revalidateTag('events-sitemap')
} catch {}
}
return doc
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free