Skip to content

Commit

Permalink
feat: nice url for rss
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindballa committed Jul 30, 2024
1 parent e58065c commit 16a05f2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default function Footer() {
</a>
</li>
<li>
<Link className="hover:text-gray-600 dark:hover:text-gray-400" href="/api/rss.xml">
<Link className="hover:text-gray-600 dark:hover:text-gray-400" href="/rss.xml">
RSS
</Link>
</li>
Expand Down
8 changes: 8 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ module.exports = withContentlayer({
source: '/js/script-u.js',
destination: 'https://analytics.balla.dev/script.js',
},
{
source: '/rss.xml',
destination: '/api/rss.xml',
},
{
source: '/feed',
destination: '/api/rss.xml',
},
];
},
async redirects() {
Expand Down

0 comments on commit 16a05f2

Please sign in to comment.