调整RSS方案,节省流量

This commit is contained in:
tangly1024.com
2023-02-21 12:43:57 +08:00
parent 957b9c4cdb
commit d1ee0c156c
5 changed files with 24 additions and 19 deletions

View File

@@ -14,6 +14,16 @@ module.exports = withBundleAnalyzer({
'images.unsplash.com'
]
},
// 默认将feed重定向至 /public/rss/feed.xml
async redirects() {
return [
{
source: '/feed',
destination: '/rss/feed.xml',
permanent: true
}
]
},
async rewrites() {
return [
{