Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 01b3731

Browse files
add revalidate to 404s
1 parent c192444 commit 01b3731

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pages/ask/[username].tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
8282
if (!params || !params.username || typeof params.username !== "string") {
8383
return {
8484
notFound: true,
85+
revalidate: 60,
8586
};
8687
}
8788
const twitchName = params.username.toLowerCase();
@@ -93,6 +94,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
9394
if (!userInfo) {
9495
return {
9596
notFound: true,
97+
revalidate: 60,
9698
};
9799
}
98100

0 commit comments

Comments
 (0)