From 34514e627fe2740ce7c7f3ea2a20bb7fd4e27ebd Mon Sep 17 00:00:00 2001 From: pablopunk Date: Thu, 9 Jul 2026 09:23:41 +0000 Subject: [PATCH] feat: add GoatCounter analytics proxy Proxy /count.js and /goat through Vercel rewrites to avoid ad-blockers. Uses same pattern as pablopunk.com, cv, and x. --- backend/src/layouts/Layout.astro | 1 + backend/vercel.json | 20 ++++++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/backend/src/layouts/Layout.astro b/backend/src/layouts/Layout.astro index aa10bd2..35a9fea 100644 --- a/backend/src/layouts/Layout.astro +++ b/backend/src/layouts/Layout.astro @@ -15,6 +15,7 @@ const containerClass = width === 'wide' ? 'container container--wide' : width == {title} +
diff --git a/backend/vercel.json b/backend/vercel.json index 58f156f..2b3eb7f 100644 --- a/backend/vercel.json +++ b/backend/vercel.json @@ -1,6 +1,22 @@ { "crons": [ - { "path": "/api/cron/abuse-check", "schedule": "0 12 * * *" }, - { "path": "/api/cron/health-check", "schedule": "0 6 * * *" } + { + "path": "/api/cron/abuse-check", + "schedule": "0 12 * * *" + }, + { + "path": "/api/cron/health-check", + "schedule": "0 6 * * *" + } + ], + "rewrites": [ + { + "source": "/count.js", + "destination": "https://gc.zgo.at/count.js" + }, + { + "source": "/goat", + "destination": "https://nvmfyi.goatcounter.com/count" + } ] }