mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-01 23:16:51 +00:00
完善API获取
This commit is contained in:
@@ -15,11 +15,8 @@ const NoFound = props => {
|
||||
}
|
||||
|
||||
export async function getStaticProps () {
|
||||
const props = await getGlobalNotionData({ from: 'category-index-props', categoryCount: 0 })
|
||||
return {
|
||||
props,
|
||||
revalidate: 1
|
||||
}
|
||||
const props = await getGlobalNotionData({ from: '404' }) || {}
|
||||
return { props }
|
||||
}
|
||||
|
||||
export default NoFound
|
||||
|
||||
@@ -55,7 +55,7 @@ export async function getStaticProps() {
|
||||
meta,
|
||||
...props
|
||||
},
|
||||
revalidate: 1
|
||||
revalidate: 5
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user