@djangocfg/api 1.2.11 → 1.2.14
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 +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -4
- package/dist/index.d.ts +0 -4
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/cfg/BaseClient.ts +4 -3
package/dist/index.cjs
CHANGED
|
@@ -22726,8 +22726,10 @@ var API = class {
|
|
|
22726
22726
|
};
|
|
22727
22727
|
|
|
22728
22728
|
// src/cfg/BaseClient.ts
|
|
22729
|
+
var isStaticBuild = process.env.NEXT_PUBLIC_STATIC_BUILD === "true";
|
|
22730
|
+
var apiUrl = isStaticBuild ? "" : process.env.NEXT_PUBLIC_API_URL || "";
|
|
22729
22731
|
var api = new API(
|
|
22730
|
-
|
|
22732
|
+
apiUrl,
|
|
22731
22733
|
{
|
|
22732
22734
|
storage: new LocalStorageAdapter()
|
|
22733
22735
|
}
|