Enable Sentry in production only

This commit is contained in:
Alex Gleason 2023-10-21 12:43:32 -05:00
parent 9c1effc9ee
commit b865996175
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 0 deletions

View File

@ -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<void> {
Sentry.init({
dsn,
debug: false,
enabled: NODE_ENV === 'production',
integrations: [new Integrations.BrowserTracing()],
// Filter events.