From c7a94f9985fedb2830fd60547310ae66468436d4 Mon Sep 17 00:00:00 2001 From: Ryan Koch Date: Tue, 5 Dec 2023 13:54:45 -0600 Subject: [PATCH] Uses APP_ENV rather than NEXT_PUBLIC_BUILD_TYPE to generate absolute URLs. This needs more consideration going forward, but it is good for now. --- src/lib/utils/environment.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/utils/environment.ts b/src/lib/utils/environment.ts index 0b787b6f4..2dd1eeed9 100644 --- a/src/lib/utils/environment.ts +++ b/src/lib/utils/environment.ts @@ -14,7 +14,4 @@ export const generateAbsoluteUrlFromBuildType = ( } export const generateAbsoluteUrlFromEnv = (relativeUrl: string) => - generateAbsoluteUrlFromBuildType( - relativeUrl, - process.env.NEXT_PUBLIC_BUILD_TYPE - ) + generateAbsoluteUrlFromBuildType(relativeUrl, process.env.APP_ENV)