mango-ui-v3/next.config.js

43 lines
889 B
JavaScript

module.exports = {
target: 'serverless',
webpack: (config, { isServer }) => {
// Important: return the modified config
if (!isServer) {
config.resolve.fallback.fs = false
}
config.module.rules.push({
test: /\.svg?$/,
oneOf: [
{
use: [
{
loader: '@svgr/webpack',
options: {
prettier: false,
svgo: true,
svgoConfig: {
plugins: [{ removeViewBox: false }],
},
titleProp: true,
},
},
],
issuer: {
and: [/\.(ts|tsx|js|jsx|md|mdx)$/],
},
},
],
})
return config
},
async redirects() {
return [
{
source: '/',
destination: '/perp/BTC',
permanent: false,
},
]
},
}