mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
tweak(phone/sentry): Only enable in prod
This commit is contained in:
1 parent
b2e3698936
commit
42d3d573cb
1 file changed
+2
-2
+2
-2
@@ -10,8 +10,8 @@ import PhoneConfig from './config/default.json';
|
|||||||
import { PhoneContainer } from './PhoneContainer';
|
import { PhoneContainer } from './PhoneContainer';
|
||||||
import attachMockNuiEvent from './os/debug/AttachMockNuiEvent';
|
import attachMockNuiEvent from './os/debug/AttachMockNuiEvent';
|
||||||
|
|
||||||
// Enable Sentry when config setting is true
|
// Enable Sentry when config setting is true and when in prod
|
||||||
if (PhoneConfig.SentryErrorMetrics) {
|
if (PhoneConfig.SentryErrorMetrics && process.env.NODE_ENV !== 'development') {
|
||||||
Sentry.init({
|
Sentry.init({
|
||||||
dsn: 'https://[email protected]/5581619',
|
dsn: 'https://[email protected]/5581619',
|
||||||
autoSessionTracking: true,
|
autoSessionTracking: true,
|
||||||
|
|||||||
Reference in new issue
Block a user