Skip to content

Commit

Permalink
Fix(TS): Change config
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorSvertoka committed Dec 22, 2024
1 parent c6da5f6 commit 36ca20b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -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")
Expand All @@ -8,9 +12,8 @@ module.exports = {
{
...fileLoaderRule,
test: /\.svg$/i,
resourceQuery: /url/, // *.svg?url
resourceQuery: /url/,
},

{
test: /\.svg$/i,
issuer: fileLoaderRule.issuer,
Expand All @@ -24,3 +27,5 @@ module.exports = {
return config;
},
};

export default nextConfig;

0 comments on commit 36ca20b

Please sign in to comment.