diff --git a/src/pages/_includes/layout/analytics.html b/src/pages/_includes/layout/analytics.html index 7d683b8cf..a1e58ba07 100644 --- a/src/pages/_includes/layout/analytics.html +++ b/src/pages/_includes/layout/analytics.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/vercel.json b/vercel.json index 5a25492ea..b27d1ff24 100644 --- a/vercel.json +++ b/vercel.json @@ -1,6 +1,16 @@ { - "routes": [ - { "handle": "filesystem" }, - { "src": "/(.*)", "status": 404, "dest": "/error-404.html" } + "rewrites": [ + { + "source": "/stats/js/script.js", + "destination": "https://plausible.io/js/script.js" + }, + { + "source": "/stats/api/event", + "destination": "https://plausible.io/api/event" + }, + { + "source": "/(.*)", + "destination": "/error-404.html" + } ] } \ No newline at end of file