[refactor] sentry 동적 임포트 및 서트파티 래퍼 그룹화#405
Open
chhann wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📋 작업 내용
🔧 변경 사항
Providers에서 prod일 때만 useEffect로 ../sentry-init를 동적 import → Sentry 초기화 코드를 첫 페인트 이후로 미룸
다만 **layout.tsx에서 여전히 import * as Sentry from '@sentry/nextjs' + <Sentry.ErrorBoundary>**를 쓰면, 그 정적 import 때문에 Sentry가 다시 초기 번들로 들어옴
레이아웃에서 정적 import 제거
layout.tsx의 <Sentry.ErrorBoundary>...</Sentry.ErrorBoundary> 를 없애고, 지연 로드 에러 바운더리로 대체