Update posthog-js + Fix PostHog type

This commit is contained in:
Dhenain Ambroise
2022-12-02 05:48:25 +01:00
parent 9ea1b3ca4c
commit 5b2e04b370
2 changed files with 13 additions and 13 deletions

View File

@@ -5,7 +5,7 @@
* for optional depenencies.
*/
import { parsePageId } from 'notion-utils'
import type posthog from 'posthog-js'
import { PostHogConfig } from 'posthog-js'
import { getEnv, getSiteConfig } from './get-config-value'
import { NavigationLink } from './site-config'
@@ -168,7 +168,7 @@ export const fathomConfig = fathomId
: undefined
export const posthogId = process.env.NEXT_PUBLIC_POSTHOG_ID
export const posthogConfig: posthog.Config = {
export const posthogConfig: Partial<PostHogConfig> = {
api_host: 'https://app.posthog.com'
}