From ea71c985896c4d5510205b5f5739f3130ee91876 Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Tue, 28 Nov 2023 17:13:00 -0500 Subject: [PATCH] inject plausible script on hosted version --- frontend/vite.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 2ea6a53..f9b5353 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -15,7 +15,9 @@ export default ({ mode }) => { createHtmlPlugin({ inject: { data: { - injectHead: process.env.VITE_INJECT_HEAD, + injectHead: process.env.VITE_IS_DEPLOYED + ? '' + : "", }, }, }),