From 0779e326d70b20c7e0d4cfbae8bb2d6a5b22884c Mon Sep 17 00:00:00 2001 From: devlikepro Date: Mon, 23 Sep 2024 15:02:50 +0700 Subject: [PATCH] [core] add PORT for heroku support fix #555 --- src/config.service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config.service.ts b/src/config.service.ts index 10e15cc1..e0ddfa50 100644 --- a/src/config.service.ts +++ b/src/config.service.ts @@ -18,6 +18,9 @@ export class WhatsappConfigService { } get port(): string { + if (this.configService.get('PORT')) { + return this.configService.get('PORT'); + } return this.configService.get('WHATSAPP_API_PORT', '3000'); }