There was an error while loading. Please reload this page.
1 parent ccc5d7d commit 91cb876Copy full SHA for 91cb876
1 file changed
frontend/src/main.tsx
@@ -34,6 +34,24 @@ declare global {
34
if (window.__CONFIG__?.SENTRY_DSN_FRONTEND) {
35
Sentry.init({
36
dsn: window.__CONFIG__.SENTRY_DSN_FRONTEND,
37
+ beforeSend(event, hint) {
38
+ const error = hint.originalException;
39
+ // Filter out Monaco editor cancellation errors (expected during navigation/disposal)
40
+ if (
41
+ error instanceof Error &&
42
+ (error.name === "Canceled" || error.message === "Canceled")
43
+ ) {
44
+ return null;
45
+ }
46
+ // Filter out Monaco worker load errors (already handled locally)
47
48
+ error instanceof ErrorEvent ||
49
+ (error instanceof Event && error.type === "error")
50
51
52
53
+ return event;
54
+ },
55
});
56
}
57
0 commit comments