完善API获取

This commit is contained in:
tangly1024
2022-05-09 14:46:09 +08:00
parent adac140892
commit 37465ca43e
5 changed files with 17 additions and 25 deletions

View File

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

View File

@@ -55,7 +55,7 @@ export async function getStaticProps() {
meta,
...props
},
revalidate: 1
revalidate: 5
}
}