Skip to content

Commit

Permalink
Fix(Files): Error correction
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorSvertoka committed Dec 22, 2024
1 parent 36ca20b commit 915a4f9
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 2,876 deletions.
30 changes: 3 additions & 27 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -1,31 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
turboMode: false,
},
webpack(config) {
const fileLoaderRule = config.module.rules.find((rule) =>
rule.test?.test?.(".svg")
);
import type { NextConfig } from "next";

config.module.rules.push(
{
...fileLoaderRule,
test: /\.svg$/i,
resourceQuery: /url/,
},
{
test: /\.svg$/i,
issuer: fileLoaderRule.issuer,
resourceQuery: { not: [...fileLoaderRule.resourceQuery.not, /url/] },
use: ["@svgr/webpack"],
}
);

fileLoaderRule.exclude = /\.svg$/i;

return config;
},
const nextConfig: NextConfig = {
/* config options here */
};

export default nextConfig;
Loading

0 comments on commit 915a4f9

Please sign in to comment.