File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ import posthog from 'posthog-js'
33export default defineNuxtPlugin ( ( ) => {
44 const runtimeConfig = useRuntimeConfig ( )
55 const posthogClient = posthog . init ( runtimeConfig . public . posthogPublicKey , {
6- api_host : runtimeConfig . public . posthogHost ,
6+ api_host : '/ph' ,
7+ ui_host : runtimeConfig . public . posthogHost ,
78 person_profiles : 'identified_only' ,
89 capture_pageview : false , // We'll handle this manually with the router,
910 cookieless_mode : 'always' , // Use cookieless mode to avoid cookie consent issues
Original file line number Diff line number Diff line change 1+ [[redirects ]]
2+ from = " /ph/static/*"
3+ to = " https://eu-assets.i.posthog.com/static/:splat"
4+ host = " eu-assets.i.posthog.com"
5+ status = 200
6+ force = true
7+
8+ [[redirects ]]
9+ from = " /ph/*"
10+ to = " https://eu.i.posthog.com/:splat"
11+ host = " eu.i.posthog.com"
12+ status = 200
13+ force = true
You can’t perform that action at this time.
0 commit comments