Update getPageProperties.js

Hotfix
This commit is contained in:
tangly1024
2024-11-20 10:57:28 +08:00
committed by GitHub
parent 8c07957f26
commit e3e78b643b

View File

@@ -244,7 +244,7 @@ function generateCustomizeSlug(postProperties, NOTION_CONFIG) {
}
let fullPrefix = ''
let allSlugPatterns = NOTION_CONFIG?.POST_URL_PREFIX
if (allSlugPatterns === undefined) {
if (allSlugPatterns === undefined || allSlugPatterns === null) {
allSlugPatterns = siteConfig(
'POST_URL_PREFIX',
BLOG.POST_URL_PREFIX,