1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00

fix posthog

This commit is contained in:
codecalm
2025-09-23 22:28:41 +02:00
parent 7b74fee012
commit 14418a1c08
2 changed files with 9 additions and 1 deletions

View File

@@ -8,6 +8,14 @@
"source": "/stats/event", "source": "/stats/event",
"destination": "https://plausible.io/api/event" "destination": "https://plausible.io/api/event"
}, },
{
"source": "/eat/static/:path(.*)",
"destination": "https://eu-assets.i.posthog.com/static/:path*"
},
{
"source": "/eat/:path(.*)",
"destination": "https://eu.i.posthog.com/:path*"
},
{ {
"source": "/(.*)", "source": "/(.*)",
"destination": "/error-404.html" "destination": "/error-404.html"

View File

@@ -16,7 +16,7 @@
if (['docs.tabler.io', 'preview.tabler.io'].includes(currentDomain)) { if (['docs.tabler.io', 'preview.tabler.io'].includes(currentDomain)) {
posthog.init('{{ posthogApiKey }}', { posthog.init('{{ posthogApiKey }}', {
api_host: '{{ posthogHost }}', api_host: `/eat`,
person_profiles: 'identified_only', person_profiles: 'identified_only',
capture_pageview: true, capture_pageview: true,
capture_pageleave: true, capture_pageleave: true,