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'
|
||||
}
|
||||
|
||||
|
||||
22
yarn.lock
22
yarn.lock
@@ -459,10 +459,10 @@
|
||||
resolved "https://registry.yarnpkg.com/@resvg/resvg-wasm/-/resvg-wasm-2.0.0-alpha.4.tgz#fc2f86186a9641df030d8f9f3f9d995899cd1ecb"
|
||||
integrity sha512-pWIG9a/x1ky8gXKRhPH1OPKpHFoMN1ISLbJ+O+gPXQHIAKhNd5I28RlWf7q576hAOQA9JZTlo3p/M2uyLzJmmw==
|
||||
|
||||
"@sentry/types@^6.11.0":
|
||||
version "6.19.4"
|
||||
resolved "https://registry.npmjs.org/@sentry/types/-/types-6.19.4.tgz"
|
||||
integrity sha512-fzLiQPrjJQ8HgFgA2VqnpLiEOrTJ2ItRY8RY7Cn4038HACoYWYDjrkdVJQBq6IyrxxkgWOSLZXnv85uozBQC+g==
|
||||
"@sentry/types@7.22.0":
|
||||
version "7.22.0"
|
||||
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-7.22.0.tgz#58e4ce77b523048e0f31e2ea4b597946d76f6079"
|
||||
integrity sha512-LhCL+wb1Jch+OesB2CIt6xpfO1Ab6CRvoNYRRzVumWPLns1T3ZJkarYfhbLaOEIb38EIbPgREdxn2AJT560U4Q==
|
||||
|
||||
"@shuding/opentype.js@1.4.0-beta.0":
|
||||
version "1.4.0-beta.0"
|
||||
@@ -2881,13 +2881,13 @@ postcss@8.4.14:
|
||||
source-map-js "^1.0.2"
|
||||
|
||||
posthog-js@^1.20.2:
|
||||
version "1.20.2"
|
||||
resolved "https://registry.npmjs.org/posthog-js/-/posthog-js-1.20.2.tgz"
|
||||
integrity sha512-0HxG2aVObhGz6I98+N/tTZ0Azkus6vYPDS+TiDFO1UWx88QVzflcTAhybsBdhG0xfmghuC6jvFui73hjdimZeg==
|
||||
version "1.36.1"
|
||||
resolved "https://registry.yarnpkg.com/posthog-js/-/posthog-js-1.36.1.tgz#56786329e7dbce800c89920329dbafde827ef6d6"
|
||||
integrity sha512-Uy5pWkktFjwQ8FGykwmB5daCMkAV6zZvoWD8gsyEoO2oict+x8F81RE4u7ZGYSODgXzu51aMzcoRyXysZwBTTw==
|
||||
dependencies:
|
||||
"@sentry/types" "^6.11.0"
|
||||
"@sentry/types" "7.22.0"
|
||||
fflate "^0.4.1"
|
||||
rrweb-snapshot "^1.1.7"
|
||||
rrweb-snapshot "^1.1.14"
|
||||
|
||||
prebuild-install@^6.1.2:
|
||||
version "6.1.4"
|
||||
@@ -3237,9 +3237,9 @@ rimraf@^3.0.2:
|
||||
dependencies:
|
||||
glob "^7.1.3"
|
||||
|
||||
rrweb-snapshot@^1.1.7:
|
||||
rrweb-snapshot@^1.1.14:
|
||||
version "1.1.14"
|
||||
resolved "https://registry.npmjs.org/rrweb-snapshot/-/rrweb-snapshot-1.1.14.tgz"
|
||||
resolved "https://registry.yarnpkg.com/rrweb-snapshot/-/rrweb-snapshot-1.1.14.tgz#9d4d9be54a28a893373428ee4393ec7e5bd83fcc"
|
||||
integrity sha512-eP5pirNjP5+GewQfcOQY4uBiDnpqxNRc65yKPW0eSoU1XamDfc4M8oqpXGMyUyvLyxFDB0q0+DChuxxiU2FXBQ==
|
||||
|
||||
rss@^1.2.2:
|
||||
|
||||
Reference in New Issue
Block a user