From c4557bb9e2c055104a3bfc10951a0cdd94593fd9 Mon Sep 17 00:00:00 2001 From: Sara Date: Thu, 14 Dec 2023 16:21:59 +0100 Subject: [PATCH] fix non-dev --- www/app/lib/edgeConfig.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/www/app/lib/edgeConfig.ts b/www/app/lib/edgeConfig.ts index bec5bb58..d6a71738 100644 --- a/www/app/lib/edgeConfig.ts +++ b/www/app/lib/edgeConfig.ts @@ -1,6 +1,5 @@ import { get } from "@vercel/edge-config"; import { isDevelopment } from "./utils"; -import { localConfig } from "../../config"; type EdgeConfig = { [domainWithDash: string]: { @@ -32,7 +31,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()) { - return localConfig; + return require("../../config").localConfig; } let config = await get(edgeDomainToKey(domain));