nextemos 5.0.30 → 5.0.31

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.
@@ -46,28 +46,8 @@ class ConfigStore {
46
46
  static initialize() {
47
47
  if (!this.config) {
48
48
  try {
49
- let loadedConfig;
50
- // Farklı config path'lerini dene
51
- const configPaths = [
52
- "/app/nextemos-config.json",
53
- "./nextemos-config.json",
54
- "../nextemos-config.json",
55
- "../../../../nextemos-config.json"
56
- ];
57
- for (const path of configPaths) {
58
- try {
59
- loadedConfig = require(path);
60
- console.log(`Config initialized successfully from: ${path}`);
61
- break;
62
- }
63
- catch (error) {
64
- console.warn(`___Config could not be loaded from: ${path}`, error);
65
- continue;
66
- }
67
- }
68
- if (!loadedConfig) {
69
- throw new Error("No config file found in any location");
70
- }
49
+ const loadedConfig = require("../../../../nextemos-config.json");
50
+ console.log("nextemos-config.json Config initialized successfully");
71
51
  this.config = Object.assign(Object.assign({}, exports.defaultConfig), loadedConfig);
72
52
  }
73
53
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "5.0.30",
3
+ "version": "5.0.31",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",