From d48ce9f2ef59a85755b4e667d513cef33448a766 Mon Sep 17 00:00:00 2001 From: Gabriel Pastori <58153955+gabrielpastori1@users.noreply.github.com> Date: Sat, 9 Sep 2023 15:30:25 +0000 Subject: [PATCH] fix: add PORT as env alias to SERVER_PORT --- src/config/env.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/env.config.ts b/src/config/env.config.ts index 1e0a5379..fe2431fd 100644 --- a/src/config/env.config.ts +++ b/src/config/env.config.ts @@ -177,7 +177,7 @@ export class ConfigService { return { SERVER: { TYPE: process.env.SERVER_TYPE as 'http' | 'https', - PORT: Number.parseInt(process.env.SERVER_PORT) || 8080, + PORT: Number.parseInt(process.env.SERVER_PORT || process.env.PORT) || 8080, URL: process.env.SERVER_URL, HIDE_INDEX: process.env?.SERVER_HIDE_INDEX === 'true', HIDE_MANAGER: process.env?.SERVER_HIDE_MANAGER === 'true',