fix: Force posthog recording to be disabled outside cloud (#8374)

This commit is contained in:
Tomi Turtiainen
2024-01-18 14:44:27 +02:00
committed by GitHub
parent 1aa35b190a
commit f31cc0743f
2 changed files with 1 additions and 9 deletions

View File

@@ -115,9 +115,7 @@ 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('deployment.type') !== 'cloud',
debug: config.getEnv('logs.level') === 'debug',
},
personalizationSurveyEnabled: