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.mjs
CHANGED
|
@@ -37856,7 +37856,12 @@ import React97 from "react";
|
|
|
37856
37856
|
// src/molecules/creator-discovery/MCQCard/defaultFetchers.ts
|
|
37857
37857
|
function getBackendOrigin() {
|
|
37858
37858
|
if (typeof window === "undefined") return null;
|
|
37859
|
-
|
|
37859
|
+
const raw = window.__NEXT_DATA__?.runtimeConfig?.NEXT_PUBLIC_AGENT_BACKEND ?? (typeof process !== "undefined" ? process.env?.NEXT_PUBLIC_AGENT_BACKEND : void 0);
|
|
37860
|
+
if (!raw) return null;
|
|
37861
|
+
if (window.location.protocol === "https:" && raw.startsWith("http:")) {
|
|
37862
|
+
return raw.replace("http:", "https:");
|
|
37863
|
+
}
|
|
37864
|
+
return raw;
|
|
37860
37865
|
}
|
|
37861
37866
|
function getBaseUrl() {
|
|
37862
37867
|
const backend = getBackendOrigin();
|
|
@@ -39299,7 +39304,12 @@ import { AnimatePresence as AnimatePresence4, motion as motion5 } from "framer-m
|
|
|
39299
39304
|
// src/molecules/creator-discovery/CreatorWidget/defaultFetchers.ts
|
|
39300
39305
|
function getBackendOrigin2() {
|
|
39301
39306
|
if (typeof window === "undefined") return null;
|
|
39302
|
-
|
|
39307
|
+
const raw = window.__NEXT_DATA__?.runtimeConfig?.NEXT_PUBLIC_AGENT_BACKEND ?? (typeof process !== "undefined" ? process.env?.NEXT_PUBLIC_AGENT_BACKEND : void 0);
|
|
39308
|
+
if (!raw) return null;
|
|
39309
|
+
if (window.location.protocol === "https:" && raw.startsWith("http:")) {
|
|
39310
|
+
return raw.replace("http:", "https:");
|
|
39311
|
+
}
|
|
39312
|
+
return raw;
|
|
39303
39313
|
}
|
|
39304
39314
|
function getAuthToken2() {
|
|
39305
39315
|
if (typeof window === "undefined") return null;
|