Skip to content

Commit febd62b

Browse files
Change fallback false to blocking to avoid 404 error when trying to revalidate a new article (#213)
Change fallback false to blocking
1 parent f682f79 commit febd62b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/posts/[slug].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,6 @@ export const getStaticPaths = async () => {
9292

9393
return {
9494
paths: slugs?.map(({ slug }) => `/posts/${slug}`) || [],
95-
fallback: false,
95+
fallback: "blocking",
9696
}
9797
}

0 commit comments

Comments
 (0)