Skip to content

Commit

Permalink
refactor: Add deprecation notice for WEBHOOK_TUNNEL_URL (#6194)
Browse files Browse the repository at this point in the history
  • Loading branch information
krynble authored May 8, 2023
1 parent 2913e67 commit fad5781
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/cli/src/commands/BaseCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit fad5781

Please sign in to comment.