Skip to content

[refactor] sentry 동적 임포트 및 서트파티 래퍼 그룹화#405

Open
chhann wants to merge 1 commit into
Kernel360:devfrom
chhann:refactor/improved-initial-rendering-#404
Open

[refactor] sentry 동적 임포트 및 서트파티 래퍼 그룹화#405
chhann wants to merge 1 commit into
Kernel360:devfrom
chhann:refactor/improved-initial-rendering-#404

Conversation

@chhann

@chhann chhann commented Aug 22, 2025

Copy link
Copy Markdown
Collaborator

📋 작업 내용

🔧 변경 사항

  • 리펙토링 이유
  1. Providers에서 prod일 때만 useEffect로 ../sentry-init를 동적 import → Sentry 초기화 코드를 첫 페인트 이후로 미룸

  2. 다만 **layout.tsx에서 여전히 import * as Sentry from '@sentry/nextjs' + <Sentry.ErrorBoundary>**를 쓰면, 그 정적 import 때문에 Sentry가 다시 초기 번들로 들어옴

  • 변경 내용
  1. 레이아웃에서 정적 import 제거

  2. layout.tsx의 <Sentry.ErrorBoundary>...</Sentry.ErrorBoundary> 를 없애고, 지연 로드 에러 바운더리로 대체

  • 서드파티 컴포넌트로 묶어서 관리

@chhann chhann self-assigned this Aug 22, 2025
@chhann chhann added the Refactor 리팩토링 (동작 변화 없이 개선) label Aug 22, 2025
@chhann chhann added this to the 리팩토링 milestone Aug 22, 2025
@chhann chhann linked an issue Aug 22, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactor 리팩토링 (동작 변화 없이 개선)

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[refactor] JS 번들 최적화와 초기 렌더링 개선

1 participant