slug预编译

This commit is contained in:
tangly
2022-10-18 22:08:59 +08:00
parent 39b5742adc
commit 556d3d8cd4

View File

@@ -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
}
}