From a721ca920b9a87ef4323d67ff20d0ec8b04cb9c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6nig?= Date: Mon, 1 Apr 2024 14:23:47 +0200 Subject: [PATCH] feat: get backend url from env --- src/utils/envManager.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/envManager.ts b/src/utils/envManager.ts index 53cd734..473eb14 100644 --- a/src/utils/envManager.ts +++ b/src/utils/envManager.ts @@ -25,7 +25,6 @@ const configSchema = z.object({ // Validate the environment configuration immediately const validatedConfig = configSchema.safeParse({ - PORT: Number(process.env.PORT), GITHUB_CLIENT_ID: process.env.GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET: process.env.GITHUB_CLIENT_SECRET, GOOGLE_CLIENT_ID: process.env.GOOGLE_CLIENT_ID, @@ -34,7 +33,7 @@ const validatedConfig = configSchema.safeParse({ MICROSOFT_CLIENT_SECRET: process.env.MICROSOFT_CLIENT_SECRET, COOKIE_SECRET: process.env.COOKIE_SECRET, BACKEND_URL: process.env.BACKEND_URL, - BACKEND_PORT: process.env.BACKEND_PORT, + BACKEND_PORT: Number(process.env.BACKEND_PORT), DATABASE_URL: process.env.DATABASE_URL, REDIS_HOSTNAME: process.env.REDIS_HOSTNAME, REDIS_PORT: Number(process.env.REDIS_PORT),