Skip to content

Commit

Permalink
feat: redirect rss.* and feed to feed.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
ZL-Asica committed Dec 12, 2024
1 parent e40be9c commit 596159a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ const nextConfig: NextConfig = {
'remark-math',
'slugify'
]
},
async redirects() {
return [
{
source: String.raw`/:type(rss|atom|rss2)\.:format(\w+)`,
destination: '/feed.xml',
permanent: true
}
];
}
};

Expand Down

0 comments on commit 596159a

Please sign in to comment.