Skip to content

Commit

Permalink
fix: Force posthog recording to be disabled outside cloud (#8374)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomi authored and ivov committed Jan 22, 2024
1 parent e47a0d5 commit 356812c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 0 additions & 6 deletions packages/cli/src/config/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1143,12 +1143,6 @@ export const schema = {
default: 'https://ph.n8n.io',
env: 'N8N_DIAGNOSTICS_POSTHOG_API_HOST',
},
disableSessionRecording: {
doc: 'Disable posthog session recording',
format: Boolean,
default: true,
env: 'N8N_DIAGNOSTICS_POSTHOG_DISABLE_RECORDING',
},
},
sentry: {
dsn: {
Expand Down
4 changes: 1 addition & 3 deletions packages/cli/src/services/frontend.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 356812c

Please sign in to comment.