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'
|
const domains = process.env.NEXT_PUBLIC_DOMAINS_IMAGE.split(' ') || 'localhost'
|
||||||
|
|
||||||
module.exports = withPlausibleProxy()(withPWA({
|
module.exports = withPlausibleProxy()(withPWA({
|
||||||
webpack: {
|
webpack: config => {
|
||||||
test: /\.svg$/,
|
config.module.rules.push({
|
||||||
use: ['@svgr/webpack', 'url-loader'],
|
test: /\.svg$/,
|
||||||
|
use: ['@svgr/webpack', 'url-loader'],
|
||||||
|
})
|
||||||
|
|
||||||
|
return config
|
||||||
},
|
},
|
||||||
swcMinify: true,
|
swcMinify: true,
|
||||||
images: {
|
images: {
|
||||||
|
|||||||
Reference in New Issue
Block a user