pxengine 0.1.68 → 0.1.69
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 +12 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +12 -2
- package/dist/index.mjs.map +1 -1
- package/dist/registry.json +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -38152,7 +38152,12 @@ var import_react67 = __toESM(require("react"), 1);
|
|
|
38152
38152
|
// src/molecules/creator-discovery/MCQCard/defaultFetchers.ts
|
|
38153
38153
|
function getBackendOrigin() {
|
|
38154
38154
|
if (typeof window === "undefined") return null;
|
|
38155
|
-
|
|
38155
|
+
const raw = window.__NEXT_DATA__?.runtimeConfig?.NEXT_PUBLIC_AGENT_BACKEND ?? (typeof process !== "undefined" ? process.env?.NEXT_PUBLIC_AGENT_BACKEND : void 0);
|
|
38156
|
+
if (!raw) return null;
|
|
38157
|
+
if (window.location.protocol === "https:" && raw.startsWith("http:")) {
|
|
38158
|
+
return raw.replace("http:", "https:");
|
|
38159
|
+
}
|
|
38160
|
+
return raw;
|
|
38156
38161
|
}
|
|
38157
38162
|
function getBaseUrl() {
|
|
38158
38163
|
const backend = getBackendOrigin();
|
|
@@ -39595,7 +39600,12 @@ var import_framer_motion5 = require("framer-motion");
|
|
|
39595
39600
|
// src/molecules/creator-discovery/CreatorWidget/defaultFetchers.ts
|
|
39596
39601
|
function getBackendOrigin2() {
|
|
39597
39602
|
if (typeof window === "undefined") return null;
|
|
39598
|
-
|
|
39603
|
+
const raw = window.__NEXT_DATA__?.runtimeConfig?.NEXT_PUBLIC_AGENT_BACKEND ?? (typeof process !== "undefined" ? process.env?.NEXT_PUBLIC_AGENT_BACKEND : void 0);
|
|
39604
|
+
if (!raw) return null;
|
|
39605
|
+
if (window.location.protocol === "https:" && raw.startsWith("http:")) {
|
|
39606
|
+
return raw.replace("http:", "https:");
|
|
39607
|
+
}
|
|
39608
|
+
return raw;
|
|
39599
39609
|
}
|
|
39600
39610
|
function getAuthToken2() {
|
|
39601
39611
|
if (typeof window === "undefined") return null;
|