Skip to content

Commit

Permalink
fix: set revalidate on notFound pages
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgoff committed Aug 15, 2024
1 parent f64ca86 commit 5f00b57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pages/[[...uriSegments]].js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ export async function getStaticProps({ params: { uriSegments }, previewData }) {
await purgeNextjsStaticFiles(uriSegments);
return {
notFound: true,
revalidate: 10,
};
}

Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 5f00b57

Please sign in to comment.