From 36ca20b099d1d6e1b356448d14b1cdc057abc9af Mon Sep 17 00:00:00 2001 From: ViktorSvertoka Date: Sun, 22 Dec 2024 18:55:03 +0200 Subject: [PATCH] Fix(TS): Change config --- next.config.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/next.config.ts b/next.config.ts index 468cc15..c265727 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,4 +1,8 @@ -module.exports = { +/** @type {import('next').NextConfig} */ +const nextConfig = { + experimental: { + turboMode: false, + }, webpack(config) { const fileLoaderRule = config.module.rules.find((rule) => rule.test?.test?.(".svg") @@ -8,9 +12,8 @@ module.exports = { { ...fileLoaderRule, test: /\.svg$/i, - resourceQuery: /url/, // *.svg?url + resourceQuery: /url/, }, - { test: /\.svg$/i, issuer: fileLoaderRule.issuer, @@ -24,3 +27,5 @@ module.exports = { return config; }, }; + +export default nextConfig;