From f8ab1398be0f9d5af7040e6b0197feba4ff6f792 Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 3 Jun 2026 11:47:11 +0200 Subject: [PATCH] Enable Vercel Web Analytics script injection The dashboard had Web Analytics turned on, but the app never rendered the tracking script, so no data was collected. Enable the adapter's built-in webAnalytics option to inject /_vercel/insights/script.js in production. Co-Authored-By: Claude Opus 4.8 (1M context) --- astro.config.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/astro.config.mjs b/astro.config.mjs index 5319690..b52147a 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -5,5 +5,8 @@ import vercel from "@astrojs/vercel"; // All daily.dev calls go through them, keeping the token off the client. export default defineConfig({ output: "server", - adapter: vercel(), + adapter: vercel({ + // Inject the Vercel Web Analytics script in production. + webAnalytics: { enabled: true }, + }), });