mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-09 15:10:39 +00:00
@@ -41,7 +41,7 @@ export async function getStaticPaths () {
|
|||||||
const from = 'category-paths'
|
const from = 'category-paths'
|
||||||
const { categories } = await getGlobalNotionData({ from })
|
const { categories } = await getGlobalNotionData({ from })
|
||||||
return {
|
return {
|
||||||
paths: Object.keys(categories).map(category => ({ params: { category } })),
|
paths: Object.keys(categories).map(category => ({ params: { category: categories[category]?.name } })),
|
||||||
fallback: true
|
fallback: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user