mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-06 04:22:07 +00:00
fix: init posthog only when key is available.
This commit is contained in:
@@ -9,4 +9,5 @@ PUBLIC_GROWTH_ENDPOINT=
|
||||
APPWRITE_DB_INIT_ID=
|
||||
APPWRITE_COL_INIT_ID=
|
||||
APPWRITE_API_KEY_INIT=
|
||||
SENTRY_AUTH_TOKEN=
|
||||
SENTRY_AUTH_TOKEN=
|
||||
PUBLIC_POSTHOG_API_KEY=
|
||||
@@ -7,7 +7,7 @@ export const prerender = true;
|
||||
export const trailingSlash = 'never';
|
||||
|
||||
export const load = async () => {
|
||||
if (browser) {
|
||||
if (browser && PUBLIC_POSTHOG_API_KEY) {
|
||||
posthog.init(PUBLIC_POSTHOG_API_KEY, {
|
||||
api_host: 'https://eu.i.posthog.com',
|
||||
person_profiles: 'identified_only',
|
||||
|
||||
Reference in New Issue
Block a user