@fileverse/api 0.0.7 → 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/worker.js CHANGED
@@ -111,7 +111,12 @@ var init_config = __esm({
111
111
  init_constants();
112
112
  projectEnvPath = path2.join(process.cwd(), "config", ".env");
113
113
  userEnvPath = path2.join(os.homedir(), ".fileverse", ".env");
114
- loadConfig(false);
114
+ if (typeof globalThis.process !== "undefined" && typeof globalThis.process.cwd === "function") {
115
+ try {
116
+ loadConfig(false);
117
+ } catch {
118
+ }
119
+ }
115
120
  config = {
116
121
  ...STATIC_CONFIG,
117
122
  get SERVICE_NAME() {