@sprintup-cms/sdk 1.8.75 → 1.9.1
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 +12 -2
- package/dist/client.d.ts +12 -2
- 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.js
CHANGED
|
@@ -169,16 +169,13 @@ function createCMSClient(options) {
|
|
|
169
169
|
}
|
|
170
170
|
async function getPreviewPage(token) {
|
|
171
171
|
const { baseUrl, appId } = cfg();
|
|
172
|
-
console.log("[sprintup-cms] getPreviewPage called: baseUrl=", baseUrl, "appId=", appId, "tokenLength=", token?.length);
|
|
173
172
|
if (!baseUrl || !appId) {
|
|
174
173
|
console.warn("[sprintup-cms] getPreviewPage: Missing baseUrl or appId \u2014 returning null");
|
|
175
174
|
return null;
|
|
176
175
|
}
|
|
177
176
|
try {
|
|
178
177
|
const url = `${baseUrl}/api/v1/${appId}/preview?token=${encodeURIComponent(token)}`;
|
|
179
|
-
console.log("[sprintup-cms] getPreviewPage fetching:", url);
|
|
180
178
|
const res = await fetch(url, { cache: "no-store" });
|
|
181
|
-
console.log("[sprintup-cms] getPreviewPage response:", res.status);
|
|
182
179
|
if (!res.ok) {
|
|
183
180
|
const errorText = await res.text().catch(() => "");
|
|
184
181
|
console.error(`[sprintup-cms] getPreviewPage failed (${res.status}): ${errorText}`);
|