@tap-payments/os-micro-frontend-shared 0.1.419 → 0.1.420
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.
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
var _a;
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
export const BASE_URL = (_a = (isSAOCI ? 'https://mw-os.tap.com.sa' : import.meta.env.VITE_MW_BASE_URL)) !== null && _a !== void 0 ? _a : import.meta.env.VITE_BASE_URL;
|
|
1
|
+
var _a, _b;
|
|
2
|
+
const runtimeConfig = (_a = window.__GLOBAL_CONFIG__) !== null && _a !== void 0 ? _a : {};
|
|
3
|
+
export const BASE_URL = (_b = runtimeConfig.MW_BASE_URL) !== null && _b !== void 0 ? _b : import.meta.env.VITE_BASE_URL;
|
|
5
4
|
export const API_URL = `${BASE_URL}/api`;
|
|
6
5
|
export const ENV = import.meta.env.VITE_ENV;
|
|
7
6
|
export const TEST_SECRET_KEY = import.meta.env.VITE_TEST_FIXED_SK;
|
package/build/types/index.d.ts
CHANGED
package/build/types/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED