refactor(apps/*,docs): unify PostHog config (#875)

* refactor(apps/*,docs): unify PostHog config

* [autofix.ci] apply automated fixes

* refactor: remove ImportMeta and keep ImportMetaEnv only

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Makito
2026-01-04 23:58:03 +09:00
committed by GitHub
co-authored by autofix-ci[bot]
parent 7043ff7afc
commit 00d3105719
12 changed files with 83 additions and 20 deletions
+5 -3
View File
@@ -1,6 +1,8 @@
import posthog from 'posthog-js'
posthog.init('phc_pzjziJjrVZpa9SqnQqq0QEKvkmuCPH7GDTA6TbRTEf9', {
api_host: 'https://us.i.posthog.com',
person_profiles: 'identified_only', // or 'always' to create profiles for anonymous users as well
import { DEFAULT_POSTHOG_CONFIG, POSTHOG_PROJECT_KEY_DOCS } from '../../../posthog.config'
posthog.init(POSTHOG_PROJECT_KEY_DOCS, {
...DEFAULT_POSTHOG_CONFIG,
// Project-specific config...
})