Disable segment for dev env (#2372)
This commit is contained in:
parent
0b33b8ea4a
commit
de812107b5
2 changed files with 2 additions and 2 deletions
|
|
@ -121,7 +121,7 @@ const configureAnalytics = (config) => {
|
|||
const {
|
||||
initAnalytics,
|
||||
} = lazyLoadAnalytics();
|
||||
if (config && config.DiagnosticsEnabled === 'true' && config.DiagnosticId && LocalConfig.SegmentApiKey) {
|
||||
if (!__DEV__ && config && config.DiagnosticsEnabled === 'true' && config.DiagnosticId && LocalConfig.SegmentApiKey) {
|
||||
initAnalytics(config);
|
||||
} else {
|
||||
global.analytics = null;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
"AboutEnterpriseURL": "http://about.mattermost.com/",
|
||||
"PlatformNoticeURL": "https://about.mattermost.com/platform-notice-txt/",
|
||||
"MobileNoticeURL": "https://about.mattermost.com/mobile-notice-txt/",
|
||||
"SegmentApiKey": "oPPT2MA24VYZTBGDyXtUDa7u50lkPIE4",
|
||||
"SegmentApiKey": "",
|
||||
"ExperimentalUsernamePressIsMention": false,
|
||||
|
||||
"HideEmailLoginExperimental": false,
|
||||
|
|
|
|||
Loading…
Reference in a new issue