@fileverse/api 0.0.8 → 0.0.9

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.
package/dist/index.js CHANGED
@@ -116,7 +116,12 @@ var init_config = __esm({
116
116
  init_constants();
117
117
  projectEnvPath = path2.join(process.cwd(), "config", ".env");
118
118
  userEnvPath = path2.join(os.homedir(), ".fileverse", ".env");
119
- loadConfig(false);
119
+ if (typeof globalThis.process !== "undefined" && typeof globalThis.process.cwd === "function") {
120
+ try {
121
+ loadConfig(false);
122
+ } catch {
123
+ }
124
+ }
120
125
  config = {
121
126
  ...STATIC_CONFIG,
122
127
  get SERVICE_NAME() {