Skip to content

Commit

Permalink
fix: Force posthog recording to be disabled outside cloud
Browse files Browse the repository at this point in the history
The recordings are not enabled by default, but env variable enables opt-in. This
changes the logic that opt-in requires also being a cloud deployment.
  • Loading branch information
tomi committed Jan 17, 2024
1 parent 9945701 commit c790ab7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cli/src/services/frontend.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ export class FrontendService {
apiHost: config.getEnv('diagnostics.config.posthog.apiHost'),
apiKey: config.getEnv('diagnostics.config.posthog.apiKey'),
autocapture: false,
disableSessionRecording: config.getEnv(
'diagnostics.config.posthog.disableSessionRecording',
),
disableSessionRecording:
config.getEnv('diagnostics.config.posthog.disableSessionRecording') ||
config.getEnv('deployment.type') !== 'cloud',
debug: config.getEnv('logs.level') === 'debug',
},
personalizationSurveyEnabled:
Expand Down

0 comments on commit c790ab7

Please sign in to comment.