Adapt next.config.js to new next version

This commit is contained in:
2023-07-14 19:23:08 +04:00
parent 65f8c82ffb
commit fbf51386be
+7 -3
View File
@@ -10,9 +10,13 @@ const withPWA = require('next-pwa')({
const domains = process.env.NEXT_PUBLIC_DOMAINS_IMAGE.split(' ') || 'localhost'
module.exports = withPlausibleProxy()(withPWA({
webpack: {
test: /\.svg$/,
use: ['@svgr/webpack', 'url-loader'],
webpack: config => {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack', 'url-loader'],
})
return config
},
swcMinify: true,
images: {