@djangocfg/api 1.2.11 → 1.2.13

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.cjs CHANGED
@@ -22726,8 +22726,9 @@ var API = class {
22726
22726
  };
22727
22727
 
22728
22728
  // src/cfg/BaseClient.ts
22729
+ var apiUrl = process.env.NEXT_PUBLIC_API_URL || "";
22729
22730
  var api = new API(
22730
- typeof process !== "undefined" && process.env?.NEXT_PUBLIC_API_URL ? process.env.NEXT_PUBLIC_API_URL : "http://localhost:8000",
22731
+ apiUrl,
22731
22732
  {
22732
22733
  storage: new LocalStorageAdapter()
22733
22734
  }