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:
@@ -5,6 +5,7 @@ import { generateRobotsTxt } from '@/lib/robots.txt'
|
||||
import { generateRss } from '@/lib/rss'
|
||||
import { generateSitemapXml } from '@/lib/sitemap.xml'
|
||||
import { DynamicLayout } from '@/themes/theme'
|
||||
import { generateRedirectJson } from '@/lib/redirect'
|
||||
|
||||
/**
|
||||
* 首页布局
|
||||
@@ -60,6 +61,8 @@ export async function getStaticProps(req) {
|
||||
generateRss(props)
|
||||
// 生成
|
||||
generateSitemapXml(props)
|
||||
// 生成重定向 JSON
|
||||
generateRedirectJson(props)
|
||||
|
||||
// 生成全文索引 - 仅在 yarn build 时执行 && process.env.npm_lifecycle_event === 'build'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user