From 1ddcd68286de9689696da17fd205cdc778b09d66 Mon Sep 17 00:00:00 2001 From: DrMint Date: Fri, 15 Apr 2022 17:58:34 +0200 Subject: [PATCH] Scans pages are also refreshed when the library item is updated --- src/pages/api/revalidate.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/api/revalidate.ts b/src/pages/api/revalidate.ts index bcc6107..6c1f11b 100644 --- a/src/pages/api/revalidate.ts +++ b/src/pages/api/revalidate.ts @@ -99,6 +99,7 @@ export default async function Mail( paths.push(`/library/${body.entry.slug}`); serverRuntimeConfig.locales?.map((locale: string) => { paths.push(`/${locale}/library/${body.entry.slug}`); + paths.push(`/${locale}/library/${body.entry.slug}/scans`); body.entry.subitem_of.map((parentItem) => { paths.push(`/${locale}/library/${parentItem.slug}`); });