@campxdev/campx-web-utils 2.1.4 → 2.1.7

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": "@campxdev/campx-web-utils",
3
- "version": "2.1.4",
3
+ "version": "2.1.7",
4
4
  "author": "CampX",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -21,7 +21,7 @@ declare module 'axios' {
21
21
  // Get base URL from environment variables
22
22
  const getBaseUrl = (): string => {
23
23
  // For Create React App
24
- return process.env.REACT_APP_API_HOST || '';
24
+ return process.env.REACT_APP_API_HOST || '/api';
25
25
  };
26
26
 
27
27
  // Format query parameters
@@ -7,7 +7,7 @@ import { institutionCode, isDevelopment, tenantCode } from '../utils/constants';
7
7
  // Get base URL from environment variables
8
8
  const getBaseUrl = (): string => {
9
9
  // For Create React App
10
- return process.env.REACT_APP_API_HOST || '';
10
+ return process.env.REACT_APP_API_HOST || '/api';
11
11
  };
12
12
 
13
13
  // Format query parameters