kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'sentry-prod' into 'main'
Enable Sentry in production only See merge request soapbox-pub/soapbox!2832environments/review-main-yi2y9f/deployments/4213
commit
272e1fde2d
|
@ -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.
|
||||
|
|
Ładowanie…
Reference in New Issue