This commit is contained in:
Igor Loskutov
2025-09-05 13:05:00 -04:00
parent 462a897882
commit 01c969b8a9

View File

@@ -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;
}