From c62c64362fb4782fe635235e2c142de172c64393 Mon Sep 17 00:00:00 2001 From: Igor Loskutov Date: Thu, 4 Sep 2025 21:10:23 -0400 Subject: [PATCH] github debug --- www/app/lib/edgeConfig.ts | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/www/app/lib/edgeConfig.ts b/www/app/lib/edgeConfig.ts index 8d60436b..741089d3 100644 --- a/www/app/lib/edgeConfig.ts +++ b/www/app/lib/edgeConfig.ts @@ -32,28 +32,5 @@ export function edgeDomainToKey(domain: string) { export async function getConfig() { const domain = new URL(process.env.NEXT_PUBLIC_SITE_URL!).hostname; - if (1 === 1) { - console.error(process.env); - throw new Error("hello"); - } - - if (isCI) { - // "noop" - return require("../../config-template").localConfig; - } - - if (process.env.NEXT_PUBLIC_ENV === "development") { - return require("../../config").localConfig; - } - - let config = await get(edgeDomainToKey(domain)); - - if (typeof config !== "object") { - console.warn("No config for this domain, falling back to default"); - config = await get(edgeDomainToKey("default")); - } - - if (typeof config !== "object") throw Error("Error fetching config"); - - return config as DomainConfig; + return require("../../config-template").localConfig; }