fix(core): Fix diagnostics.enabled default value (#11809)

This commit is contained in:
Iván Ovejero 2024-11-20 13:19:41 +01:00 committed by GitHub
parent ff4261c168
commit 5fa72b0512
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ class PostHogConfig {
export class DiagnosticsConfig { export class DiagnosticsConfig {
/** Whether diagnostics are enabled. */ /** Whether diagnostics are enabled. */
@Env('N8N_DIAGNOSTICS_ENABLED') @Env('N8N_DIAGNOSTICS_ENABLED')
enabled: boolean = false; enabled: boolean = true;
/** Diagnostics config for frontend. */ /** Diagnostics config for frontend. */
@Env('N8N_DIAGNOSTICS_CONFIG_FRONTEND') @Env('N8N_DIAGNOSTICS_CONFIG_FRONTEND')

View file

@ -283,7 +283,7 @@ describe('GlobalConfig', () => {
}, },
}, },
diagnostics: { diagnostics: {
enabled: false, enabled: true,
frontendConfig: '1zPn9bgWPzlQc0p8Gj1uiK6DOTn;https://telemetry.n8n.io', frontendConfig: '1zPn9bgWPzlQc0p8Gj1uiK6DOTn;https://telemetry.n8n.io',
backendConfig: '1zPn7YoGC3ZXE9zLeTKLuQCB4F6;https://telemetry.n8n.io', backendConfig: '1zPn7YoGC3ZXE9zLeTKLuQCB4F6;https://telemetry.n8n.io',
posthogConfig: { posthogConfig: {