From e6ff7255005196d0cab08e4f4c6344313cf30897 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Wed, 13 Apr 2022 14:38:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B4=A2=E5=BC=95=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/search/[keyword].js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/search/[keyword].js b/pages/search/[keyword].js index 12ab9dda..b91db5e2 100644 --- a/pages/search/[keyword].js +++ b/pages/search/[keyword].js @@ -37,7 +37,8 @@ export async function getStaticProps({ params: { keyword } }) { props.posts = await filterByMemCache(props.allPosts, keyword) props.keyword = keyword return { - props + props, + revalidate: 1 } }