From 98df889173aa6818660dbc151a3716a981c3d47a Mon Sep 17 00:00:00 2001 From: codecalm Date: Wed, 26 Oct 2022 01:20:47 +0200 Subject: [PATCH] vercel config fix --- src/pages/_includes/layout/analytics.html | 2 +- vercel.json | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/pages/_includes/layout/analytics.html b/src/pages/_includes/layout/analytics.html index 7d683b8cf..e872beafe 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..d8277161e 100644 --- a/vercel.json +++ b/vercel.json @@ -2,5 +2,15 @@ "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" + } ] } \ No newline at end of file