diff --git a/phone/src/index.tsx b/phone/src/index.tsx index ef8298a..914dfa4 100644 --- a/phone/src/index.tsx +++ b/phone/src/index.tsx @@ -10,8 +10,8 @@ import PhoneConfig from './config/default.json'; import { PhoneContainer } from './PhoneContainer'; import attachMockNuiEvent from './os/debug/AttachMockNuiEvent'; -// Enable Sentry when config setting is true -if (PhoneConfig.SentryErrorMetrics) { +// Enable Sentry when config setting is true and when in prod +if (PhoneConfig.SentryErrorMetrics && process.env.NODE_ENV !== 'development') { Sentry.init({ dsn: 'https://71fff4e8f11543fa8dbe7acd0f94fb5d@o478949.ingest.sentry.io/5581619', autoSessionTracking: true,