Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fixed swetrix logging for selfhosted

Blue Mousea71ece7b6465
diff --git a/src/redux/constants/index.js b/src/redux/constants/index.js
index c00bdac0c..38e30e9da 100644
--- a/src/redux/constants/index.js
+++ b/src/redux/constants/index.js
@@ -45,7 +45,7 @@ export const TOKEN = 'access_token'
export const TITLE_SUFFIX = '| Swetrix'
-export const isSelfhosted = process.env.REACT_APP_SELFHOSTED
+export const isSelfhosted = Boolean(process.env.REACT_APP_SELFHOSTED)
export const LIVE_VISITORS_UPDATE_INTERVAL = 40000