diff --git a/pages/api/storyblok/webhook.ts b/pages/api/storyblok/webhook.ts index 3b6751b..3d41559 100644 --- a/pages/api/storyblok/webhook.ts +++ b/pages/api/storyblok/webhook.ts @@ -83,12 +83,12 @@ router.post(async (req: EnhancedNextApiRequest, res: NextApiResponse) => { } case 'deleted': case 'unpublished': { - if (event.full_slug) { - const path = - event.full_slug === 'home' ? '/' : '/' + event.full_slug - await res.revalidate(path) - return res.status(200).json({ revalidated: true }) - } + // if (event.full_slug) { + // const path = + // event.full_slug === 'home' ? '/' : '/' + event.full_slug + // await res.revalidate(path) + // return res.status(200).json({ revalidated: true }) + // } const result = await req.db .collection('obituaries') .deleteOne({ storyId: event.story_id })