RSS生成限制频率

This commit is contained in:
tangly1024.com
2024-05-15 15:52:04 +08:00
parent fc25c9220e
commit b6d656f05b
3 changed files with 49 additions and 9 deletions

View File

@@ -61,9 +61,7 @@ export async function getStaticProps(req) {
// 生成robotTxt
generateRobotsTxt(props)
// 生成Feed订阅
if (JSON.parse(BLOG.ENABLE_RSS)) {
generateRss(props)
}
generateRss(props)
// 生成全文索引 - 仅在 yarn build 时执行 && process.env.npm_lifecycle_event === 'build'