Skip to content

Commit

Permalink
Feat: revalidate characterInfo 60sec
Browse files Browse the repository at this point in the history
  • Loading branch information
MustSave committed Nov 20, 2023
1 parent fe70773 commit 47c7f3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/chats/[character].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const getStaticProps: GetStaticProps = async (context) => {

try {
const characterInfo = await ssrFindCharacterById(character as string);
return { props: { characterInfo } };
return { props: { characterInfo }, revalidate: 60 };
} catch (error) {
return { notFound: true };
}
Expand Down

0 comments on commit 47c7f3f

Please sign in to comment.