File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -7,17 +7,15 @@ import App from "./App.svelte"
77import { ERROR_FILTER } from "./utils/common"
88
99// error reporting
10- if ( process . env . NODE_ENV === "production" ) {
11- Sentry . init ( {
12- dsn : "https://5d1069c3cb6faaa6e7ad0d9dc0145361@o4510419080445952.ingest.us.sentry.io/4510419082346496" ,
13- beforeSend ( event ) {
14- // filter out known non-critical errors
15- const errorMessage = event . exception ?. values ?. [ 0 ] ?. value || ""
16- const shouldFilter = ERROR_FILTER . some ( ( filter ) => errorMessage . includes ( filter ) )
17- return shouldFilter ? null : event
18- }
19- } )
20- }
10+ Sentry . init ( {
11+ dsn : "https://5d1069c3cb6faaa6e7ad0d9dc0145361@o4510419080445952.ingest.us.sentry.io/4510419082346496" ,
12+ beforeSend ( event ) {
13+ // filter out known non-critical errors
14+ const errorMessage = event . exception ?. values ?. [ 0 ] ?. value || ""
15+ const shouldFilter = ERROR_FILTER . some ( ( filter ) => errorMessage . includes ( filter ) )
16+ return shouldFilter ? null : event
17+ }
18+ } )
2119
2220const app = new App ( { target : document . body } )
2321
You can’t perform that action at this time.
0 commit comments