nextemos 5.0.29 → 5.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -49,10 +49,10 @@ class ConfigStore {
|
|
|
49
49
|
let loadedConfig;
|
|
50
50
|
// Farklı config path'lerini dene
|
|
51
51
|
const configPaths = [
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
"/app/nextemos-config.json",
|
|
53
|
+
"./nextemos-config.json",
|
|
54
|
+
"../nextemos-config.json",
|
|
55
|
+
"../../../../nextemos-config.json"
|
|
56
56
|
];
|
|
57
57
|
for (const path of configPaths) {
|
|
58
58
|
try {
|
|
@@ -61,11 +61,12 @@ class ConfigStore {
|
|
|
61
61
|
break;
|
|
62
62
|
}
|
|
63
63
|
catch (error) {
|
|
64
|
+
console.warn(`___Config could not be loaded from: ${path}`, error);
|
|
64
65
|
continue;
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
68
|
if (!loadedConfig) {
|
|
68
|
-
throw new Error(
|
|
69
|
+
throw new Error("No config file found in any location");
|
|
69
70
|
}
|
|
70
71
|
this.config = Object.assign(Object.assign({}, exports.defaultConfig), loadedConfig);
|
|
71
72
|
}
|