@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djangocfg/api",
3
- "version": "1.2.13",
3
+ "version": "1.2.14",
4
4
  "author": {
5
5
  "name": "DjangoCFG",
6
6
  "url": "https://djangocfg.com"
@@ -68,7 +68,7 @@
68
68
  "@types/node": "^22.15.3",
69
69
  "@types/react": "19.2.2",
70
70
  "@types/react-dom": "19.2.1",
71
- "@djangocfg/typescript-config": "^1.2.13",
71
+ "@djangocfg/typescript-config": "^1.2.14",
72
72
  "react": "^19.1.0",
73
73
  "react-dom": "^19.1.0",
74
74
  "tsup": "^8.5.0",
@@ -13,7 +13,9 @@ import { API, LocalStorageAdapter } from './generated';
13
13
  * Singleton API instance with JWT token management
14
14
  * Uses LocalStorage for token persistence
15
15
  */
16
- const apiUrl = process.env.NEXT_PUBLIC_API_URL || '';
16
+ const isStaticBuild = process.env.NEXT_PUBLIC_STATIC_BUILD === 'true';
17
+ const apiUrl = isStaticBuild ? '' : process.env.NEXT_PUBLIC_API_URL || '';
18
+
17
19
  const api = new API(
18
20
  apiUrl,
19
21
  {