From 5f00b57e2ce1bfa7e6976bf48a693d7dbe75ed47 Mon Sep 17 00:00:00 2001 From: Alexandra Goff Date: Wed, 14 Aug 2024 14:04:20 -0700 Subject: [PATCH] fix: set revalidate on notFound pages --- pages/[[...uriSegments]].js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pages/[[...uriSegments]].js b/pages/[[...uriSegments]].js index 79501870..fe25c91f 100644 --- a/pages/[[...uriSegments]].js +++ b/pages/[[...uriSegments]].js @@ -156,6 +156,7 @@ export async function getStaticProps({ params: { uriSegments }, previewData }) { await purgeNextjsStaticFiles(uriSegments); return { notFound: true, + revalidate: 10, }; } @@ -197,6 +198,7 @@ export async function getStaticProps({ params: { uriSegments }, previewData }) { await purgeNextjsStaticFiles(uriSegments); return { notFound: true, + revalidate: 10, }; } setEdcLog(runId, "Done building for " + uri, "BUILD_COMPLETE");