Skip to content

Commit

Permalink
feat(src): ✨ Redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
Nudelsuppe42 committed Jan 14, 2024
1 parent 7fdfda1 commit cbb1595
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,30 @@ const nextConfig = {
locales: ['en', 'zh'], // 'de', 'es', 'fr', 'ru', 'nl',
},
output: 'standalone',
async redirects() {
return [
{
source: '/sitemap',
destination: '/sitemap.xml',
permanent: false,
},
{
source: '/buildteams/:id*',
destination: '/teams/:id*',
permanent: true,
},
{
source: '/buildteams',
destination: '/teams',
permanent: true,
},
{
source: '/discord',
destination: 'https://discord.gg/buildtheearth',
permanent: true,
},
];
},
};

module.exports = withBundleAnalyzer(nextConfig);

0 comments on commit cbb1595

Please sign in to comment.