From c836687f4dd86bca5fa7f3cca5b5d31ff0a18df5 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Tue, 24 Jan 2023 04:12:34 +0000 Subject: [PATCH] feat: goatcounter --- client/index.html | 3 +++ client/vite.config.js | 1 + 2 files changed, 4 insertions(+) diff --git a/client/index.html b/client/index.html index adcb7e77a..e6342b6ed 100644 --- a/client/index.html +++ b/client/index.html @@ -4,6 +4,9 @@ <%= TACHI_NAME %> + + <%- VITE_ADDITIONAL_HEAD %> + diff --git a/client/vite.config.js b/client/vite.config.js index 630eb2f33..f34148116 100644 --- a/client/vite.config.js +++ b/client/vite.config.js @@ -74,6 +74,7 @@ export default defineConfig(() => { data: { VITE_CDN_URL: process.env.VITE_CDN_URL, TACHI_NAME: process.env.TACHI_NAME ?? "Tachi", + VITE_ADDITIONAL_HEAD: process.env.VITE_GOATCOUNTER ? `` : "" }, }, }),