fix: allow cross subdomain cookies at posthog (#243)

This commit is contained in:
Sabiha Khan 2026-04-17 11:47:20 +05:30 committed by GitHub
parent 1d0a7cd2d8
commit 5ecc0d4da9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 39 additions and 7 deletions

View file

@ -53,6 +53,7 @@ const initPostHog = () => {
capture_pageview: 'history_change',
capture_pageleave: true,
capture_exceptions: true,
cross_subdomain_cookie: true,
debug: process.env.NEXT_PUBLIC_NODE_ENV === 'development',
});
console.log('PostHog initialized from NEXT_PUBLIC config');
@ -68,6 +69,7 @@ const initPostHog = () => {
capture_pageview: 'history_change',
capture_pageleave: true,
capture_exceptions: true,
cross_subdomain_cookie: true,
debug: process.env.NEXT_PUBLIC_NODE_ENV === 'development',
});
console.log('PostHog initialized from API config');