From c71f3830214ae7ee7ddedebe295a0cb385ad3a27 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 1 Jan 2025 14:09:27 -0500 Subject: Using Vercel's proxy for analytics --- src/layouts/Default.astro | 2 +- vercel.json | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 vercel.json diff --git a/src/layouts/Default.astro b/src/layouts/Default.astro index e9017c6..43595f9 100644 --- a/src/layouts/Default.astro +++ b/src/layouts/Default.astro @@ -38,7 +38,7 @@ const date = new Date(); - + diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..3d9f9bd --- /dev/null +++ b/vercel.json @@ -0,0 +1,12 @@ +{ + "rewrites": [ + { + "source": "/plausible/js/script.js", + "destination": "https://stats.alee14.me/js/script.file-downloads.outbound-links.js" + }, + { + "source": "/plausible/api/event", + "destination": "https://stats.alee14.me/api/event" + } + ] +} -- cgit v1.2.3