Adapt next.config.js to new next version
This commit is contained in:
+7
-3
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user