mango-ui-v2/next.config.js

24 lines
503 B
JavaScript
Raw Normal View History

const withTM = require('next-transpile-modules')([
'@project-serum/sol-wallet-adapter',
])
2021-04-24 19:10:28 -07:00
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
})
2022-07-30 08:40:11 -07:00
module.exports = withBundleAnalyzer(
withTM({
target: 'serverless',
webpack(config, { isServer }) {
if (!isServer) config.resolve.fallback.fs = false
2022-07-30 08:40:11 -07:00
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
})
2022-07-30 08:40:11 -07:00
return config
},
})
)