mirror of
https://github.com/oceanprotocol/status-frontend.git
synced 2024-11-24 02:48:37 +01:00
29 lines
692 B
JavaScript
29 lines
692 B
JavaScript
module.exports = (phase, { defaultConfig }) => {
|
|
/**
|
|
* @type {import('next').NextConfig}
|
|
*/
|
|
const nextConfig = {
|
|
webpack: (config, options) => {
|
|
config.module.rules.push(
|
|
{
|
|
test: /\.svg$/,
|
|
issuer: /\.(tsx|ts)$/,
|
|
use: [{ loader: '@svgr/webpack', options: { icon: true } }]
|
|
},
|
|
{
|
|
test: /\.gif$/,
|
|
// yay for webpack 5
|
|
// https://webpack.js.org/guides/asset-management/#loading-images
|
|
type: 'asset/resource'
|
|
}
|
|
)
|
|
|
|
return typeof defaultConfig.webpack === 'function'
|
|
? defaultConfig.webpack(config, options)
|
|
: config
|
|
}
|
|
}
|
|
|
|
return nextConfig
|
|
}
|