From 556d3d8cd4bd92b37405e6391e10a9e6c921e73e Mon Sep 17 00:00:00 2001 From: tangly Date: Tue, 18 Oct 2022 22:08:59 +0800 Subject: [PATCH] =?UTF-8?q?slug=E9=A2=84=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/[...slug].js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/[...slug].js b/pages/[...slug].js index 39246577..76862023 100644 --- a/pages/[...slug].js +++ b/pages/[...slug].js @@ -87,9 +87,9 @@ export async function getStaticPaths() { } const from = 'slug-paths' - const { allPosts } = await getGlobalNotionData({ from }) + const { allPages } = await getGlobalNotionData({ from }) return { - paths: allPosts.map(row => ({ params: { slug: row.slug } })), + paths: allPages.map(row => ({ params: { slug: row.slug } })), fallback: true } }