@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.
@@ -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}`);