chore: add rewrites for misc txt pages and rss feed (#3744)

This commit is contained in:
Jonathan Summers-Muir authored and GitHub committed 2021-11-03 12:33:51 +08:00
1 parent d3bd1cedb2
commit c51dec00a2
1 file changed
+17
+17
View File
@@ -43,6 +43,23 @@ module.exports = withMDX({
source: '/docs/:path*',
destination: `${process.env.NEXT_PUBLIC_DOCS_URL}/:path*`,
},
// misc rewrites
{
source: '/humans.txt',
destination: `/docs/humans.txt`,
},
{
source: '/lawyers.txt',
destination: `/docs/lawyers.txt`,
},
{
source: '/.well-known/security.txt.txt',
destination: `/docs/.well-known/security.txt.txt`,
},
{
source: '/feed.xml',
destination: `/rss.xml`,
},
]
},
async redirects() {