40 lines
723 B
JavaScript
40 lines
723 B
JavaScript
const { i18n } = require('./next-i18next.config')
|
|
|
|
const moduleExports = {
|
|
i18n,
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: '/market',
|
|
destination: '/',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/spot/:name',
|
|
destination: '/',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: '/perp/:name',
|
|
destination: '/',
|
|
permanent: true,
|
|
},
|
|
]
|
|
},
|
|
webpack: (config, { isServer }) => {
|
|
// Important: return the modified config
|
|
if (!isServer) {
|
|
config.resolve.fallback.fs = false
|
|
}
|
|
|
|
config.module.rules.push({
|
|
test: /\.svg$/,
|
|
use: ['@svgr/webpack'],
|
|
})
|
|
|
|
return config
|
|
},
|
|
}
|
|
|
|
module.exports = moduleExports
|