From 7e69e69ec886fe565be63f31897ac780dfd70371 Mon Sep 17 00:00:00 2001 From: Sarthak Agrawal Date: Sun, 4 Oct 2026 12:13:09 +0530 Subject: [PATCH 1/3] Remove dead vitals.fleet.workers.dev beacon The shared vitals Worker no longer exists (Cloudflare API: no script 'vitals'/'fleet-vitals'; POST to /collect returns 404). Web vitals continue to flow through PostHog when present; the fallback sendBeacon to the dead collector is removed. Co-Authored-By: Claude Opus 5.5 --- scripts/audit-product.mjs | 1 - src/lib/vitals.ts | 6 ------ 2 files changed, 7 deletions(-) diff --git a/scripts/audit-product.mjs b/scripts/audit-product.mjs index 93e117b9..001ad339 100644 --- a/scripts/audit-product.mjs +++ b/scripts/audit-product.mjs @@ -255,7 +255,6 @@ try { ); const unexpectedResponses = failedResponses.filter( ({ status: responseStatus, url }) => - !url.startsWith('https://vitals.fleet.workers.dev/') && (url !== finalUrl || responseStatus !== expectedStatus) ); const unexpectedFooter = diff --git a/src/lib/vitals.ts b/src/lib/vitals.ts index 514dcf7a..c737d86c 100644 --- a/src/lib/vitals.ts +++ b/src/lib/vitals.ts @@ -18,12 +18,6 @@ function sendToAnalytics(metric: VitalMetric) { id: metric.id, navigation_type: metric.navigationType, }); - } else { - const body = JSON.stringify({ - project: process.env.NEXT_PUBLIC_PROJECT_SLUG ?? 'significanthobbies', - ...metric, - }); - navigator.sendBeacon('https://vitals.fleet.workers.dev/collect', body); } } From b5923f071c78f76eded3c5790577dcc914970c81 Mon Sep 17 00:00:00 2001 From: Sarthak Agrawal Date: Sun, 4 Oct 2026 12:19:26 +0530 Subject: [PATCH 2/3] Format audit filter Co-Authored-By: Claude Opus 5.5 --- scripts/audit-product.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/audit-product.mjs b/scripts/audit-product.mjs index 001ad339..e0dd7687 100644 --- a/scripts/audit-product.mjs +++ b/scripts/audit-product.mjs @@ -255,7 +255,7 @@ try { ); const unexpectedResponses = failedResponses.filter( ({ status: responseStatus, url }) => - (url !== finalUrl || responseStatus !== expectedStatus) + url !== finalUrl || responseStatus !== expectedStatus ); const unexpectedFooter = (state === 'local' || state === 'account') && From 0753b380e2a977af28203a0fa4585cb0b00387eb Mon Sep 17 00:00:00 2001 From: Sarthak Agrawal Date: Sun, 4 Oct 2026 12:19:34 +0530 Subject: [PATCH 3/3] Format audit filter on one line Co-Authored-By: Claude Opus 5.5 --- scripts/audit-product.mjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/audit-product.mjs b/scripts/audit-product.mjs index e0dd7687..3de9ae28 100644 --- a/scripts/audit-product.mjs +++ b/scripts/audit-product.mjs @@ -254,8 +254,7 @@ try { ({ impact }) => impact === 'serious' || impact === 'critical' ); const unexpectedResponses = failedResponses.filter( - ({ status: responseStatus, url }) => - url !== finalUrl || responseStatus !== expectedStatus + ({ status: responseStatus, url }) => url !== finalUrl || responseStatus !== expectedStatus ); const unexpectedFooter = (state === 'local' || state === 'account') &&