We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb08477 commit f948c7cCopy full SHA for f948c7c
1 file changed
src/app/lib/sentry.ts
@@ -17,15 +17,15 @@ const ALLOWED_CONSOLE_PREFIXES = [
17
"[settings]",
18
];
19
20
-export function initSentry(): void {
21
- // Only initialize in production — never in dev/test
22
- if (import.meta.env.DEV) return;
+// DSN is a public project identifier, not a secret.
+// Set this after creating a Sentry project.
+const SENTRY_DSN = "";
23
24
- const dsn = import.meta.env.VITE_SENTRY_DSN;
25
- if (!dsn) return;
+export function initSentry(): void {
+ if (import.meta.env.DEV || !SENTRY_DSN) return;
26
27
Sentry.init({
28
- dsn,
+ dsn: SENTRY_DSN,
29
tunnel: "/api/error-reporting",
30
environment: import.meta.env.MODE,
31
0 commit comments