From 8da9fa869f1c1ba8c219b2f5363aac633711eb4c Mon Sep 17 00:00:00 2001 From: codecalm Date: Mon, 21 Apr 2025 20:08:10 +0200 Subject: [PATCH] feat: add Plausible analytics integration and configure Vercel rewrites --- docs/vercel.json | 18 ++++++++++++++++++ shared/layouts/docs/default.html | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 docs/vercel.json diff --git a/docs/vercel.json b/docs/vercel.json new file mode 100644 index 000000000..83a7b0fc8 --- /dev/null +++ b/docs/vercel.json @@ -0,0 +1,18 @@ +{ + "buildCommand": "pnpm run build", + "devCommand": "pnpm run dev", + "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 diff --git a/shared/layouts/docs/default.html b/shared/layouts/docs/default.html index 49c1ceda3..640e914d0 100644 --- a/shared/layouts/docs/default.html +++ b/shared/layouts/docs/default.html @@ -6,6 +6,8 @@ Tabler Documentation - {{ title }} + + {% for plugin in site.cssPlugins %}