mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 04:39:06 +00:00
doc
This commit is contained in:
@@ -33,6 +33,8 @@ export async function getConfig() {
|
|||||||
try {
|
try {
|
||||||
return require("../../config").localConfig;
|
return require("../../config").localConfig;
|
||||||
} catch (e) {
|
} 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);
|
if (!isBuildPhase) throw new Error(e);
|
||||||
return require("../../config-template").localConfig;
|
return require("../../config-template").localConfig;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user