Skip to content

Commit

Permalink
feat(server): disable mixpanel in test/dev envs
Browse files Browse the repository at this point in the history
  • Loading branch information
fabis94 committed Sep 27, 2023
1 parent 0045c35 commit a3c4778
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/server/modules/shared/helpers/envHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ export function adminOverrideEnabled() {
}

export function enableMixpanel() {
if (isDevEnv() || isTestEnv()) return false

// if not explicitly set to '0' or 'false', it is enabled by default
return !['0', 'false'].includes(process.env.ENABLE_MP || 'true')
}
Expand Down

0 comments on commit a3c4778

Please sign in to comment.