mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
fix: Force posthog recording to be disabled outside cloud (#8374)
This commit is contained in:
parent
1aa35b190a
commit
f31cc0743f
|
@ -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: {
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue