mango-ui-v3/next.config.js

34 lines
683 B
JavaScript
Raw Normal View History

2021-04-24 19:10:28 -07:00
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
})
module.exports = withBundleAnalyzer({
2021-04-13 12:48:36 -07:00
target: 'serverless',
typescript: {
ignoreBuildErrors: true, // TODO: remove this before mainnet
},
webpack(config, { isServer }) {
// Fixes npm packages that depend on `fs` module
if (!isServer) {
config.node = {
fs: 'empty',
}
}
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
})
return config
},
async redirects() {
return [
{
source: '/',
2021-07-18 07:17:52 -07:00
destination: '/spot/BTC',
permanent: false,
},
]
},
2021-04-24 19:10:28 -07:00
})