feat(初步实现UUID及其去除-形式重定向到slug):

This commit is contained in:
anime
2025-01-03 00:34:25 +08:00
parent 2831d2fb0c
commit ebc5bd15bb
3 changed files with 43 additions and 2 deletions

View File

@@ -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'