Skip to content

Conversation

@mtm-git1018
Copy link
Collaborator

📢 기능 설명

import type { NextConfig } from 'next';

const nextConfig: NextConfig = {
// TurboPack 설정
experimental: {
turbo: {
rules: {
'.svg': {
loaders: ['@svgr/webpack'],
as: '
.js',
},
},
},
},
// webpack 설정
webpack: (config) => {
// @ts-expect-error 타입 에러 무시
const fileLoaderRule = config.module.rules.find((rule) => rule.test?.test?.('.svg'));

config.module.rules.push(
  {
    ...fileLoaderRule,
    test: /\.svg$/i,
    resourceQuery: /url/,
  },
  {
    test: /\.svg$/i,
    issuer: fileLoaderRule.issuer,
    resourceQuery: { not: [...fileLoaderRule.resourceQuery.not, /url/] },
    use: [
      {
        loader: '@svgr/webpack',
        options: {
          typescript: true,
          ext: 'tsx',
        },
      },
    ],
  }
);
fileLoaderRule.exclude = /\.svg$/i;
return config;

},
};

export default nextConfig;


연결된 issue

연결된 issue를 자동으로 닫기 위해 아래 {이슈넘버}를 입력해주세요.

close #{이슈넘버}



🩷 Approve 하기 전 확인해주세요!

  • 리뷰어가 확인해줬으면 하는 사항 적어주세요.
  • [ ]

✅ 체크리스트

  • PR 제목 규칙 잘 지켰는가?
  • 추가/수정사항을 설명하였는가?
  • 이슈넘버를 적었는가?
  • Approve 하기 전 확인 사항 체크했는가?

@mtm-git1018 mtm-git1018 self-assigned this Sep 23, 2025
@mtm-git1018 mtm-git1018 added the fix 버그 수정 label Sep 23, 2025
Copy link
Collaborator

@ahk0413 ahk0413 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

굿

@mtm-git1018 mtm-git1018 merged commit e7a2b24 into dev Sep 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix 버그 수정

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants