From 62ea561fb5a4a60ea81fc02c0e59cc7c632babb6 Mon Sep 17 00:00:00 2001 From: Lloyd Richards Date: Wed, 27 May 2026 08:57:13 +0200 Subject: [PATCH] feat(docs): add Umami analytics via VITE env var --- apps/docs/README.md | 16 ++++++++++++++++ apps/docs/app/env.d.ts | 5 +++++ apps/docs/app/root.tsx | 9 +++++++++ 3 files changed, 30 insertions(+) create mode 100644 apps/docs/app/env.d.ts diff --git a/apps/docs/README.md b/apps/docs/README.md index 5c4780a..76b445b 100644 --- a/apps/docs/README.md +++ b/apps/docs/README.md @@ -78,6 +78,22 @@ Make sure to deploy the output of `npm run build` │ └── server/ # Server-side code ``` +### Analytics (Umami) + +The docs app supports Umami analytics via a Vite environment variable. + +Set this in your deployment environment (for example, Vercel): + +```bash +VITE_UMAMI_WEBSITE_ID= +``` + +When the variable is set, the app injects: + +```html +