From 98df889173aa6818660dbc151a3716a981c3d47a Mon Sep 17 00:00:00 2001 From: codecalm Date: Wed, 26 Oct 2022 01:20:47 +0200 Subject: [PATCH 1/5] 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 From 9e745c919e4126b4fe925de2d5d18ce06476599f Mon Sep 17 00:00:00 2001 From: codecalm Date: Wed, 26 Oct 2022 01:25:52 +0200 Subject: [PATCH 2/5] vercel config fix --- vercel.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/vercel.json b/vercel.json index d8277161e..3520b0d26 100644 --- a/vercel.json +++ b/vercel.json @@ -1,8 +1,4 @@ { - "routes": [ - { "handle": "filesystem" }, - { "src": "/(.*)", "status": 404, "dest": "/error-404.html" } - ], "rewrites": [ { "source": "/stats/js/script.js", From 9cdc8aec5c979d325845f8c6ff1be685b473aea8 Mon Sep 17 00:00:00 2001 From: codecalm Date: Wed, 26 Oct 2022 01:28:12 +0200 Subject: [PATCH 3/5] vercel config fix --- src/pages/_includes/layout/analytics.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/_includes/layout/analytics.html b/src/pages/_includes/layout/analytics.html index e872beafe..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 From cfb5bc1b4b66212e4105827d5fa454ac81a85948 Mon Sep 17 00:00:00 2001 From: codecalm Date: Wed, 26 Oct 2022 01:29:22 +0200 Subject: [PATCH 4/5] vercel config fix --- vercel.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vercel.json b/vercel.json index 3520b0d26..f6f41e44e 100644 --- a/vercel.json +++ b/vercel.json @@ -7,6 +7,10 @@ { "source": "/stats/api/event", "destination": "https://plausible.io/api/event" + }, + { + "source": "404.html", + "destination": "/error-404.html" } ] } \ No newline at end of file From fd10fb141f9c4612f0a23133375bc34c67e17982 Mon Sep 17 00:00:00 2001 From: codecalm Date: Wed, 26 Oct 2022 01:29:22 +0200 Subject: [PATCH 5/5] vercel config fix --- vercel.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vercel.json b/vercel.json index 3520b0d26..b27d1ff24 100644 --- a/vercel.json +++ b/vercel.json @@ -7,6 +7,10 @@ { "source": "/stats/api/event", "destination": "https://plausible.io/api/event" + }, + { + "source": "/(.*)", + "destination": "/error-404.html" } ] } \ No newline at end of file