Using Vercel's proxy for analytics

This commit is contained in:
Andrew Lee 2025-01-01 14:09:27 -05:00
parent b2ed99705f
commit c71f383021
Signed by: andrew
SSH key fingerprint: SHA256:bbGg1DYG5CuKl2jo1DqzvUsaTeyvhM3tjCsej5lYMg4
2 changed files with 13 additions and 1 deletions

View file

@ -38,7 +38,7 @@ const date = new Date();
<!-- Plausible Analytics -->
<script defer data-domain="alee14.me" src="https://stats.alee14.me/js/script.file-downloads.outbound-links.js"></script>
<script defer data-domain="alee14.me" data-api="/plausible/api/event" src="/plausible/js/script.js"></script>
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
<ClientRouter fallback="animate" />

12
vercel.json Normal file
View file

@ -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"
}
]
}