From b8659961758f535686518bc6a238d7f3c33ab9b2 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 21 Oct 2023 12:43:32 -0500 Subject: [PATCH] Enable Sentry in production only --- src/sentry.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sentry.ts b/src/sentry.ts index 22198dc25..b5617c324 100644 --- a/src/sentry.ts +++ b/src/sentry.ts @@ -1,3 +1,4 @@ +import { NODE_ENV } from 'soapbox/build-config'; import sourceCode from 'soapbox/utils/code'; import type { Account } from './schemas'; @@ -12,6 +13,7 @@ async function startSentry(dsn: string): Promise { Sentry.init({ dsn, debug: false, + enabled: NODE_ENV === 'production', integrations: [new Integrations.BrowserTracing()], // Filter events.