mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-13 15:09:47 +00:00
Update posthog-js + Fix PostHog type
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user