@volr/react 0.1.3 → 0.1.4
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.cjs +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -349,6 +349,10 @@ var SessionSync = class {
|
|
|
349
349
|
var DEFAULT_API_BASE_URL = "https://api.volr.io";
|
|
350
350
|
function resolveApiBaseUrl(config) {
|
|
351
351
|
const anyConfig = config;
|
|
352
|
+
const devOverride = anyConfig.__devApiBaseUrl;
|
|
353
|
+
if (devOverride && typeof devOverride === "string") {
|
|
354
|
+
return devOverride.replace(/\/+$/, "");
|
|
355
|
+
}
|
|
352
356
|
const override = anyConfig.apiBaseUrl;
|
|
353
357
|
if (override && typeof override === "string") {
|
|
354
358
|
return override.replace(/\/+$/, "");
|