Merge pull request #548 from Ylarod/patch-1

fix vercel build
This commit is contained in:
tangly1024
2022-12-07 22:24:47 +08:00
committed by GitHub

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