mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
fix vercel build
This commit is contained in:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user