-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy pathsentry.client.config.ts
More file actions
49 lines (48 loc) · 1.56 KB
/
Copy pathsentry.client.config.ts
File metadata and controls
49 lines (48 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import * as Sentry from "@sentry/nextjs";
if (
process.env.NEXT_PUBLIC_SENTRY_DSN &&
document.location.hostname === "chesskit.org"
) {
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
environment: "production",
integrations: [
Sentry.replayIntegration({
maskAllText: false,
maskAllInputs: false,
blockAllMedia: false,
}),
],
tracesSampleRate: 1,
replaysSessionSampleRate: 0,
replaysOnErrorSampleRate: 1.0,
debug: false,
initialScope: {
extra: {
hardwareConcurrency: navigator.hardwareConcurrency,
deviceMemory:
"deviceMemory" in navigator &&
typeof navigator.deviceMemory === "number"
? navigator.deviceMemory
: "unknown",
},
},
ignoreErrors: [
"AbortError: The user aborted a request.",
"Failed to fetch",
"Fetch is aborted",
"The operation was aborted.",
"AbortError: AbortError",
"TypeError: Load failed",
"RangeError: Out of memory",
"RuntimeError: Out of bounds memory access (evaluating 'n.apply(null,arguments)')",
"Uncaught RuntimeError: Aborted(CompileError: WebAssembly.instantiate():",
"Uncaught RangeError: WebAssembly.Memory(): could not allocate memory",
"Aborted(NetworkError: Failed to execute 'send' on 'XMLHttpRequest'",
"Aborted(CompileError: WebAssembly.Module doesn't parse at byte",
"Aborted(NetworkError: A network error occurred",
"TimeoutError: signal timed out",
"AbortError: The user aborted a request",
],
});
}