From fad578163523fc87580a009275f9e66c2fe154db Mon Sep 17 00:00:00 2001 From: Omar Ajoue Date: Mon, 8 May 2023 15:52:13 +0200 Subject: [PATCH] refactor: Add deprecation notice for WEBHOOK_TUNNEL_URL (#6194) --- packages/cli/src/commands/BaseCommand.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/cli/src/commands/BaseCommand.ts b/packages/cli/src/commands/BaseCommand.ts index f91a88c15b..2bd7a88572 100644 --- a/packages/cli/src/commands/BaseCommand.ts +++ b/packages/cli/src/commands/BaseCommand.ts @@ -55,6 +55,11 @@ 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.', + ); + } const dbType = config.getEnv('database.type'); if (['mysqldb', 'mariadb'].includes(dbType)) {