@propknot/shared-ui 1.1.0 → 1.1.1
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.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -415,8 +415,10 @@ var getApiUrl = () => {
|
|
|
415
415
|
return process.env.REACT_APP_API_URL;
|
|
416
416
|
}
|
|
417
417
|
const hostname = window.location.hostname;
|
|
418
|
-
|
|
419
|
-
|
|
418
|
+
if (hostname === "localhost" || hostname === "127.0.0.1") {
|
|
419
|
+
return "http://localhost:5000/api";
|
|
420
|
+
}
|
|
421
|
+
return `https://api.${hostname}/api`;
|
|
420
422
|
};
|
|
421
423
|
var apiUrl = getApiUrl();
|
|
422
424
|
var api = import_axios.default.create({
|