@campxdev/campx-web-utils 2.1.4 → 2.1.5
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/cjs/index.js +1 -1
- package/dist/esm/index.js +2 -2
- package/package.json +1 -1
- package/src/config/axios.ts +1 -1
- package/src/config/nonWorkspaceAxios.ts +1 -1
package/package.json
CHANGED
package/src/config/axios.ts
CHANGED
|
@@ -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
|