ipfs/next.config.js

24 lines
601 B
JavaScript
Raw Normal View History

2021-09-13 00:09:25 +02:00
module.exports = (phase, { defaultConfig }) => {
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
webpack: (config, options) => {
2019-10-20 01:40:55 +02:00
config.module.rules.push({
test: /\.svg$/,
2021-09-13 00:09:25 +02:00
use: [{ loader: '@svgr/webpack', options: { icon: true } }]
2019-10-20 01:40:55 +02:00
})
2021-09-13 00:09:25 +02:00
return typeof defaultConfig.webpack === 'function'
? defaultConfig.webpack(config, options)
: config
},
bundleAnalyzer: () =>
require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true'
}),
reactStrictMode: true
}
2019-10-20 01:40:55 +02:00
2021-09-13 00:09:25 +02:00
return nextConfig
2019-10-20 01:40:55 +02:00
}