2023-01-31 15:46:56 +00:00
|
|
|
/** @type {import('next').NextConfig} */
|
|
|
|
|
|
|
|
const path = require('path')
|
|
|
|
|
|
|
|
const moduleExports = {
|
|
|
|
reactStrictMode: true,
|
|
|
|
experimental: { images: { unoptimized: true } },
|
|
|
|
sassOptions: {
|
|
|
|
includePaths: [path.join(__dirname, 'src/styles')],
|
|
|
|
},
|
|
|
|
async redirects() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: '/',
|
|
|
|
destination: '/redbank',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/farm/vault/:address/create',
|
|
|
|
destination: '/farm/',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: '/farm/vault/:address/create/setup',
|
|
|
|
destination: '/farm/',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
2023-06-07 08:32:21 +00:00
|
|
|
source: '/farm/vault/:address/account/:id/edit',
|
2023-01-31 15:46:56 +00:00
|
|
|
destination: '/farm/',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
2023-06-07 08:32:21 +00:00
|
|
|
source: '/farm/vault/:address/account/:id/unlock',
|
2023-01-31 15:46:56 +00:00
|
|
|
destination: '/farm',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
2023-06-07 08:32:21 +00:00
|
|
|
source: '/farm/vault/:address/account/:id/close',
|
2023-01-31 15:46:56 +00:00
|
|
|
destination: '/farm',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
{
|
2023-06-07 08:32:21 +00:00
|
|
|
source: '/farm/vault/:address/account/:id/repay',
|
2023-01-31 15:46:56 +00:00
|
|
|
destination: '/farm',
|
|
|
|
permanent: true,
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2023-02-07 16:52:13 +00:00
|
|
|
module.exports = moduleExports
|