From 47c7f3fe729bc5d447780727b993887767ee4c97 Mon Sep 17 00:00:00 2001 From: MustSave Date: Tue, 21 Nov 2023 02:25:24 +0900 Subject: [PATCH] Feat: revalidate characterInfo 60sec --- src/pages/chats/[character].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/chats/[character].tsx b/src/pages/chats/[character].tsx index 03ead00..2b68846 100644 --- a/src/pages/chats/[character].tsx +++ b/src/pages/chats/[character].tsx @@ -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 }; }