Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@ import type { NextConfig } from 'next';

const nextConfig: NextConfig = {

// TurboPack 설정
experimental: {
turbo: {
rules: {
'*.svg': {
loaders: ['@svgr/webpack'],
as: '*.js',
},
},
},
},
// webpack 설정
webpack: (config) => {
// @ts-expect-error 타입 에러 무시
Expand Down Expand Up @@ -42,6 +31,14 @@ const nextConfig: NextConfig = {
fileLoaderRule.exclude = /\.svg$/i;
return config;
},
turbopack: {
rules: {
'*.svg': {
loaders: ['@svgr/webpack'],
as: '*.js',
},
}
},
};

export default nextConfig;
Loading