@cimplify/sdk 0.50.1 → 0.50.2
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/server.js +1 -1
- package/dist/server.mjs +1 -1
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -11,7 +11,7 @@ var DEFAULT_PROD_URL = "https://storefronts.cimplify.io";
|
|
|
11
11
|
var DEFAULT_DEV_URL = "http://127.0.0.1:8787";
|
|
12
12
|
function defaultBaseUrl() {
|
|
13
13
|
const proc = globalThis.process;
|
|
14
|
-
return proc?.env?.NODE_ENV === "
|
|
14
|
+
return proc?.env?.NODE_ENV === "development" ? DEFAULT_DEV_URL : DEFAULT_PROD_URL;
|
|
15
15
|
}
|
|
16
16
|
function readEnv(...keys) {
|
|
17
17
|
const env = globalThis.process?.env;
|
package/dist/server.mjs
CHANGED
|
@@ -9,7 +9,7 @@ var DEFAULT_PROD_URL = "https://storefronts.cimplify.io";
|
|
|
9
9
|
var DEFAULT_DEV_URL = "http://127.0.0.1:8787";
|
|
10
10
|
function defaultBaseUrl() {
|
|
11
11
|
const proc = globalThis.process;
|
|
12
|
-
return proc?.env?.NODE_ENV === "
|
|
12
|
+
return proc?.env?.NODE_ENV === "development" ? DEFAULT_DEV_URL : DEFAULT_PROD_URL;
|
|
13
13
|
}
|
|
14
14
|
function readEnv(...keys) {
|
|
15
15
|
const env = globalThis.process?.env;
|