Skip to content

Commit

Permalink
fix vercel build
Browse files Browse the repository at this point in the history
  • Loading branch information
Ylarod committed Dec 7, 2022
1 parent 0ff82c7 commit 61a467c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/[...slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit 61a467c

Please sign in to comment.