tweak(phone/sentry): Only enable in prod

This commit is contained in:
Taso committed 2021-03-04 17:24:14 -05:00
1 parent b2e3698936
commit 42d3d573cb
1 file changed
+2 -2
+2 -2
View File
@@ -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://[email protected]/5581619',
autoSessionTracking: true,