The minimalistic document archiving platform.
fix(PosthogAnalytics): improve POSTHOG_ENABLED check for better compatibility (#3)
Corentin Thomasset6b4ad3e22792
diff --git a/src/components/PosthogAnalytics.astro b/src/components/PosthogAnalytics.astroindex 5e5d0766..a875ccba 100644--- a/src/components/PosthogAnalytics.astro+++ b/src/components/PosthogAnalytics.astro@@ -1,5 +1,5 @@----const isEnabled= import.meta.env.POSTHOG_ENABLED === 'true';+const isEnabled= import.meta.env.POSTHOG_ENABLED === 'true' || import.meta.env.POSTHOG_ENABLED === true;const apiKey: string | undefined = import.meta.env.POSTHOG_API_KEY;---{ isEnabled && (