From b0aef6eaa1fa3e9eb3f95b4335170846633fd5c2 Mon Sep 17 00:00:00 2001 From: Jari Mustonen Date: Sat, 18 Nov 2023 14:00:11 +0200 Subject: [PATCH] docs: next.js instructions (#898) Fixed next.config.js example to a working version per this: https://github.com/gregberge/svgr/issues/860#issuecomment-1603940142 Co-authored-by: Jari Mustonen --- website/pages/docs/next.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/pages/docs/next.mdx b/website/pages/docs/next.mdx index 9a3f1351..fb8f01fc 100644 --- a/website/pages/docs/next.mdx +++ b/website/pages/docs/next.mdx @@ -44,7 +44,7 @@ module.exports = { { test: /\.svg$/i, issuer: /\.[jt]sx?$/, - resourceQuery: { not: /url/ }, // exclude if *.svg?url + resourceQuery: { not: [...fileLoaderRule.resourceQuery.not, /url/] }, // exclude if *.svg?url use: ['@svgr/webpack'], }, )