mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
Use assets.surfsense.com as PostHog host
This commit is contained in:
parent
8566b03c91
commit
556646fe97
3 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
),
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue