@sprintup-cms/sdk 1.8.75 → 1.9.0
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/client.cjs +0 -3
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +3 -1
- package/dist/client.d.ts +3 -1
- package/dist/client.js +0 -3
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +0 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/dist/next/index.cjs +0 -3
- package/dist/next/index.cjs.map +1 -1
- package/dist/next/index.js +0 -3
- package/dist/next/index.js.map +1 -1
- package/package.json +1 -1
package/dist/next/index.cjs
CHANGED
|
@@ -175,16 +175,13 @@ function createCMSClient(options) {
|
|
|
175
175
|
}
|
|
176
176
|
async function getPreviewPage(token) {
|
|
177
177
|
const { baseUrl, appId } = cfg();
|
|
178
|
-
console.log("[sprintup-cms] getPreviewPage called: baseUrl=", baseUrl, "appId=", appId, "tokenLength=", token?.length);
|
|
179
178
|
if (!baseUrl || !appId) {
|
|
180
179
|
console.warn("[sprintup-cms] getPreviewPage: Missing baseUrl or appId \u2014 returning null");
|
|
181
180
|
return null;
|
|
182
181
|
}
|
|
183
182
|
try {
|
|
184
183
|
const url = `${baseUrl}/api/v1/${appId}/preview?token=${encodeURIComponent(token)}`;
|
|
185
|
-
console.log("[sprintup-cms] getPreviewPage fetching:", url);
|
|
186
184
|
const res = await fetch(url, { cache: "no-store" });
|
|
187
|
-
console.log("[sprintup-cms] getPreviewPage response:", res.status);
|
|
188
185
|
if (!res.ok) {
|
|
189
186
|
const errorText = await res.text().catch(() => "");
|
|
190
187
|
console.error(`[sprintup-cms] getPreviewPage failed (${res.status}): ${errorText}`);
|