mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +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 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,
|
||||
|
||||
Reference in new issue
Block a user