From 01c969b8a9a345d228af080314dc53d4d71406d2 Mon Sep 17 00:00:00 2001 From: Igor Loskutov Date: Fri, 5 Sep 2025 13:05:00 -0400 Subject: [PATCH] doc --- www/app/lib/edgeConfig.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/app/lib/edgeConfig.ts b/www/app/lib/edgeConfig.ts index 685081ed..f234a2cf 100644 --- a/www/app/lib/edgeConfig.ts +++ b/www/app/lib/edgeConfig.ts @@ -33,6 +33,8 @@ export async function getConfig() { try { return require("../../config").localConfig; } catch (e) { + // next build() WILL try to execute the require above even if conditionally protected + // but thank god it at least runs catch{} block properly if (!isBuildPhase) throw new Error(e); return require("../../config-template").localConfig; }