File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,32 @@ Sentry.init({
99 environment,
1010 release : process . env . NEXT_PUBLIC_SENTRY_RELEASE ,
1111
12+ beforeSend ( event , hint ) {
13+ const error = hint . originalException ;
14+
15+ // Axios 네트워크/타임아웃/취소 에러
16+ if (
17+ error != null
18+ && typeof error === 'object'
19+ && 'code' in error
20+ && ( error . code === 'ERR_NETWORK' || error . code === 'ECONNABORTED' || error . code === 'ERR_CANCELED' )
21+ ) {
22+ return null ;
23+ }
24+
25+ // 브라우저 네트워크 에러 (fetch, Safari)
26+ if ( error instanceof TypeError && / L o a d f a i l e d | F a i l e d t o f e t c h / . test ( error . message ) ) {
27+ return null ;
28+ }
29+
30+ // 배포 후 이전 청크 캐시 요청 실패
31+ if ( error instanceof Error && error . name === 'ChunkLoadError' ) {
32+ return null ;
33+ }
34+
35+ return event ;
36+ } ,
37+
1238 integrations : [
1339 Sentry . replayIntegration ( {
1440 maskAllText : false ,
You can’t perform that action at this time.
0 commit comments