Use assets.surfsense.com as PostHog host

This commit is contained in:
CREDO23 2026-04-07 20:20:56 +02:00
parent 8566b03c91
commit 556646fe97
3 changed files with 3 additions and 3 deletions

View file

@ -7,4 +7,4 @@ HOSTED_FRONTEND_URL=https://surfsense.net
# PostHog analytics (leave empty to disable)
POSTHOG_KEY=
POSTHOG_HOST=https://us.i.posthog.com
POSTHOG_HOST=https://assets.surfsense.com

View file

@ -115,7 +115,7 @@ async function buildElectron() {
process.env.POSTHOG_KEY || desktopEnv.POSTHOG_KEY || ''
),
'process.env.POSTHOG_HOST': JSON.stringify(
process.env.POSTHOG_HOST || desktopEnv.POSTHOG_HOST || 'https://us.i.posthog.com'
process.env.POSTHOG_HOST || desktopEnv.POSTHOG_HOST || 'https://assets.surfsense.com'
),
},
};

View file

@ -16,7 +16,7 @@ export function initAnalytics(): void {
}
client = new PostHog(key, {
host: process.env.POSTHOG_HOST || 'https://us.i.posthog.com',
host: process.env.POSTHOG_HOST || 'https://assets.surfsense.com',
flushAt: 20,
flushInterval: 10000,
});