Skip to content

Commit f948c7c

Browse files
committed
refactor(sentry): hardcodes DSN directly, removes env var indirection
1 parent fb08477 commit f948c7c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/app/lib/sentry.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ const ALLOWED_CONSOLE_PREFIXES = [
1717
"[settings]",
1818
];
1919

20-
export function initSentry(): void {
21-
// Only initialize in production — never in dev/test
22-
if (import.meta.env.DEV) return;
20+
// DSN is a public project identifier, not a secret.
21+
// Set this after creating a Sentry project.
22+
const SENTRY_DSN = "";
2323

24-
const dsn = import.meta.env.VITE_SENTRY_DSN;
25-
if (!dsn) return;
24+
export function initSentry(): void {
25+
if (import.meta.env.DEV || !SENTRY_DSN) return;
2626

2727
Sentry.init({
28-
dsn,
28+
dsn: SENTRY_DSN,
2929
tunnel: "/api/error-reporting",
3030
environment: import.meta.env.MODE,
3131

0 commit comments

Comments
 (0)