Skip to content

Commit

Permalink
feat: Load site functions via RemoteConfig (#1580)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite authored Dec 9, 2024
1 parent 26e8ddd commit b16c6c8
Show file tree
Hide file tree
Showing 5 changed files with 377 additions and 198 deletions.
4 changes: 3 additions & 1 deletion playground/nextjs/src/posthog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ if (typeof window !== 'undefined') {
persistence: cookieConsentGiven() ? 'localStorage+cookie' : 'memory',
person_profiles: PERSON_PROCESSING_MODE === 'never' ? 'identified_only' : PERSON_PROCESSING_MODE,
persistence_name: `${process.env.NEXT_PUBLIC_POSTHOG_KEY}_nextjs`,
opt_in_site_apps: true,
__preview_remote_config: true,
...configForConsent(),
})
// Help with debugging(window as any).posthog = posthog
// Help with debugging
;(window as any).posthog = posthog
}

export const posthogHelpers = {
Expand Down
Loading

0 comments on commit b16c6c8

Please sign in to comment.