From b8550f52c24848dadff81730c0c73ce377aa4545 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Wed, 18 Dec 2024 13:13:53 -0700 Subject: [PATCH] Update config.ts --- src/api/src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/src/config.ts b/src/api/src/config.ts index a587ad6..907e5df 100644 --- a/src/api/src/config.ts +++ b/src/api/src/config.ts @@ -23,7 +23,7 @@ export const apiBaseUrl = process.env.NODE_ENV == "production" ? "" : "http://lo export const API_PORT = process.env.API_PORT || "3000"; export const FRONTEND_URL = process.env.FRONTEND_URL || ""; -export const AUTH0_DOMAIN = `${process.env.AUTH0_DOMAIN}/` || ""; +export const AUTH0_DOMAIN = `${process.env.AUTH0_DOMAIN?.replace(/\/$/, "")}/` || ""; export const AUTH0_AUDIENCE = process.env.AUTH_AUDIENCE; export const APPLICATION_NAME = process.env.APPLICATION_NAME || "";