refactor: Add deprecation notice for WEBHOOK_TUNNEL_URL (#6194)

This commit is contained in:
Omar Ajoue 2023-05-08 15:52:13 +02:00 committed by GitHub
parent 2913e676e6
commit fad5781635
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)) {