Skip to content

Commit

Permalink
Do not send any data to sentry/glitchtip when dsn does not start with…
Browse files Browse the repository at this point in the history
… http
  • Loading branch information
sverhoeven committed Feb 8, 2024
1 parent fbf200a commit 3d046f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ function handleBrowserRequest(
});
}

SentryInit({ dsn: process.env.SENTRY_DSN });
SentryInit({
dsn: process.env.SENTRY_DSN?.startsWith("http")
? process.env.SENTRY_DSN
: undefined,
});

export function handleError(
error: unknown,
Expand Down

0 comments on commit 3d046f3

Please sign in to comment.