From 59411e0886f972743ac788139b386eff8f7b0a42 Mon Sep 17 00:00:00 2001 From: tangly Date: Tue, 18 Oct 2022 22:15:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/[...slug].js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/[...slug].js b/pages/[...slug].js index 76862023..015f053f 100644 --- a/pages/[...slug].js +++ b/pages/[...slug].js @@ -89,7 +89,7 @@ export async function getStaticPaths() { const from = 'slug-paths' const { allPages } = await getGlobalNotionData({ from }) return { - paths: allPages.map(row => ({ params: { slug: row.slug } })), + paths: allPages.map(row => ({ params: { slug: [row.slug] } })), fallback: true } }