mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
feat(支持配置UUID及其去除-形式重定向到slug功能):
This commit is contained in:
@@ -61,8 +61,10 @@ export async function getStaticProps(req) {
|
||||
generateRss(props)
|
||||
// 生成
|
||||
generateSitemapXml(props)
|
||||
// 生成重定向 JSON
|
||||
generateRedirectJson(props)
|
||||
if (siteConfig('UUID_REDIRECT', false, props?.NOTION_CONFIG)) {
|
||||
// 生成重定向 JSON
|
||||
generateRedirectJson(props)
|
||||
}
|
||||
|
||||
// 生成全文索引 - 仅在 yarn build 时执行 && process.env.npm_lifecycle_event === 'build'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user