diff --git a/docs/.vitepress/theme/components/BugReportWidget.vue b/docs/.vitepress/theme/components/BugReportWidget.vue index b524ca6..6911b02 100644 --- a/docs/.vitepress/theme/components/BugReportWidget.vue +++ b/docs/.vitepress/theme/components/BugReportWidget.vue @@ -54,7 +54,9 @@ async function submit() { errorMessage.value = ""; try { - const response = await fetch("/api/report-bug", { + // Absolute URL: coordinode.com DNS is on PowerDNS (not Cloudflare), so the + // bug-reports worker is proxied through coordinode-docs.sw.foundation (CF zone). + const response = await fetch("https://coordinode-docs.sw.foundation/api/report-bug", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index 9c70f8f..d4d0579 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -14,7 +14,9 @@ const GA_ID = (import.meta.env as Record).VITE_GA_ID || ""; const consentTheme = enhanceWithConsent(DefaultTheme, { gaId: GA_ID, // KV storage via Cloudflare Worker (configured in R-DOC2 — bug-reports-worker) - storage: createKVStorage("/api/consent"), + // Absolute URL: coordinode.com DNS is on PowerDNS (not Cloudflare), so the + // consent worker is proxied through coordinode-docs.sw.foundation (CF zone). + storage: createKVStorage("https://coordinode-docs.sw.foundation/api/consent"), }); export default {