Skip to content

Commit

Permalink
chore: set pera redirects for swap, pool, analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlilley committed Apr 10, 2024
1 parent 2739180 commit c2d575c
Showing 1 changed file with 17 additions and 26 deletions.
43 changes: 17 additions & 26 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,48 +55,44 @@ const nextConfig = {
async redirects() {
return [
{
source: '/pools',
destination: '/',
source: '/',
destination: 'https://www.sushi.com/swap',
permanent: true,
},

{
source: '/',
destination: '/swap',
source: '/swap',
destination: 'https://www.sushi.com/swap',
permanent: true,
},
// {
// source: '/swap/:path*',
// destination: 'https://www.sushi.com/swap',
// permanent: true,
// },
{
source: '/home',
destination: 'https://www.sushi.com/swap',
permanent: true,
},
// {
// source: '/farm/:path*',
// destination: 'https://www.sushi.com/earn',
// permanent: true,
// },
{
source: '/pools',
destination: 'https://www.sushi.com/pool',
permanent: true,
},
{
source: '/farms/special',
destination: 'https://www.sushi.com/earn',
destination: 'https://www.sushi.com/pool',
permanent: true,
},
{
source: '/onsen/:path*',
destination: 'https://www.sushi.com/earn',
destination: 'https://www.sushi.com/pool',
permanent: true,
},
{
source: '/farms/:path*',
destination: 'https://www.sushi.com/earn',
destination: 'https://www.sushi.com/pool',
permanent: true,
},
{
source: '/stake',
destination: 'https://www.sushi.com/earn',
destination: 'https://www.sushi.com/pool',
permanent: true,
},
{
Expand All @@ -120,15 +116,10 @@ const nextConfig = {
permanent: true,
},
{
source: '/analytics/dashboard',
destination: '/analytics',
source: '/analytics/:path*',
destination: 'https://www.sushi.com/analytics',
permanent: true,
},
{
source: '/analytics/pairs/:path*',
destination: '/analytics/pools/:path*',
permanent: true,
},
}
]
},
async rewrites() {
Expand Down

0 comments on commit c2d575c

Please sign in to comment.