From 8af6bf4998337e4a34aca21b2c1b45b9d6948c9a Mon Sep 17 00:00:00 2001 From: Igor Loskutov Date: Thu, 4 Sep 2025 11:38:26 -0400 Subject: [PATCH] less edgy config (ci) --- www/app/lib/edgeConfig.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/www/app/lib/edgeConfig.ts b/www/app/lib/edgeConfig.ts index 2e31e146..c680d781 100644 --- a/www/app/lib/edgeConfig.ts +++ b/www/app/lib/edgeConfig.ts @@ -1,5 +1,6 @@ import { get } from "@vercel/edge-config"; -import { isDevelopment } from "./utils"; + +import { isBuildPhase } from "./next"; type EdgeConfig = { [domainWithDash: string]: { @@ -31,6 +32,11 @@ export function edgeDomainToKey(domain: string) { export async function getConfig() { const domain = new URL(process.env.NEXT_PUBLIC_SITE_URL!).hostname; + if (isBuildPhase) { + // "noop" + return require("../../config-template").localConfig; + } + if (process.env.NEXT_PUBLIC_ENV === "development") { return require("../../config").localConfig; }