From 57bab11e4e41b0532eb948eb95646b1164b2f968 Mon Sep 17 00:00:00 2001 From: Omar Ajoue Date: Fri, 5 May 2023 17:08:35 +0200 Subject: [PATCH] refactor: Add deprecation notice for WEBHOOK_TUNNEL_URL --- packages/cli/src/commands/BaseCommand.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/cli/src/commands/BaseCommand.ts b/packages/cli/src/commands/BaseCommand.ts index c8292b5408d83..82be638f30a6d 100644 --- a/packages/cli/src/commands/BaseCommand.ts +++ b/packages/cli/src/commands/BaseCommand.ts @@ -55,6 +55,12 @@ export abstract class BaseCommand extends Command { this.exitWithCrash('There was an error initializing DB', error), ); + if (process.env.WEBHOOK_TUNNEL_URL) { + LoggerProxy.warn( + 'You are still using the WEBHOOK_TUNNEL_URL environment variable. It has been deprecated and will be removed in a future version of n8n. Please switch to using WEBHOOK_URL instead.', + ); + } + this.instanceId = this.userSettings.instanceId ?? ''; await Container.get(PostHogClient).init(this.instanceId); await Container.get(InternalHooks).init(this.instanceId);