fix vercel build

This commit is contained in:
Ylarod
2022-12-07 21:40:08 +08:00
committed by GitHub
parent 0ff82c7aa0
commit 61a467c614

View File

@@ -98,7 +98,9 @@ export async function getStaticProps({ params: { slug } }) {
let fullSlug = slug.join('/')
console.log('[读取Notion]', fullSlug)
if (BLOG.PSEUDO_STATIC) {
fullSlug += '.html'
if (!fullSlug.endsWith('.html')) {
fullSlug += '.html'
}
}
const from = `slug-props-${fullSlug}`
const props = await getGlobalNotionData({ from })