From c693857dcc32dc4ea53cafd14dd6952edfe05931 Mon Sep 17 00:00:00 2001 From: Sara Date: Thu, 14 Dec 2023 16:34:41 +0100 Subject: [PATCH] fix non-dev --- www/app/lib/edgeConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/app/lib/edgeConfig.ts b/www/app/lib/edgeConfig.ts index d6a71738..0468200e 100644 --- a/www/app/lib/edgeConfig.ts +++ b/www/app/lib/edgeConfig.ts @@ -30,7 +30,7 @@ export function edgeDomainToKey(domain: string) { // get edge config server-side (prefer DomainContext when available), domain is the hostname export async function getConfig(domain: string) { - if (isDevelopment()) { + if (process.env.NEXT_PUBLIC_ENV === "development") { return require("../../config").localConfig; }