@djangocfg/api 1.2.13 → 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 +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/cfg/BaseClient.ts +3 -1
package/dist/index.mjs
CHANGED
|
@@ -22441,7 +22441,8 @@ var API = class {
|
|
|
22441
22441
|
};
|
|
22442
22442
|
|
|
22443
22443
|
// src/cfg/BaseClient.ts
|
|
22444
|
-
var
|
|
22444
|
+
var isStaticBuild = process.env.NEXT_PUBLIC_STATIC_BUILD === "true";
|
|
22445
|
+
var apiUrl = isStaticBuild ? "" : process.env.NEXT_PUBLIC_API_URL || "";
|
|
22445
22446
|
var api = new API(
|
|
22446
22447
|
apiUrl,
|
|
22447
22448
|
{
|