From fbf51386bec6335f299a7688baa47075a9b56c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Famibelle-Pronzola?= Date: Fri, 14 Jul 2023 19:23:08 +0400 Subject: [PATCH] Adapt next.config.js to new next version --- next.config.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/next.config.js b/next.config.js index 761823b..f56ddfc 100644 --- a/next.config.js +++ b/next.config.js @@ -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: {