Skip to content

Commit 8b5f6ad

Browse files
authored
Fix
1 parent 7e8c959 commit 8b5f6ad

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/frontend/main.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,15 @@ import App from "./App.svelte"
77
import { 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

2220
const app = new App({ target: document.body })
2321

0 commit comments

Comments
 (0)