mirror of
https://github.com/tabler/tabler.git
synced 2025-12-21 17:34:25 +04:00
fix posthog
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user