From 1d687a6c839f1215c3a9814429d984d4e183debf Mon Sep 17 00:00:00 2001 From: Joshua Snyder Date: Mon, 30 Jun 2025 19:06:30 +0200 Subject: [PATCH 1/2] fix: be explicit about defaults in docs --- src/nextjs/docs.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nextjs/docs.ts b/src/nextjs/docs.ts index 8ed09e30..b4597175 100644 --- a/src/nextjs/docs.ts +++ b/src/nextjs/docs.ts @@ -16,6 +16,7 @@ LOCATION: Wherever other providers are, or the components folder ============================== Changes: - Create a PostHogProvider component that will be imported into the layout file. +- Make sure to include the defaults: '2025-05-24' option in the init call. Example: -------------------------------------------------- @@ -147,6 +148,7 @@ LOCATION: Wherever the root _app.${ Changes: - Initialize PostHog in _app.js. - Wrap the application in PostHogProvider. +- Make sure to include the defaults: '2025-05-24' option in the init call. Example: -------------------------------------------------- @@ -251,6 +253,7 @@ Changes: language === 'typescript' ? 'ts' : 'js' } in any other file; Next.js will automatically handle it. - Do not modify any other pages/components in the Next.js application; the PostHog client will be automatically initialized and handle all pageview tasks on its own. +- Make sure to include the defaults: '2025-05-24' option in the init call. Example: -------------------------------------------------- From 1fe7830abb39b172062e56ffe0fa9162549213c2 Mon Sep 17 00:00:00 2001 From: Joshua Snyder Date: Mon, 30 Jun 2025 19:08:08 +0200 Subject: [PATCH 2/2] add to react --- src/react/docs.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/react/docs.ts b/src/react/docs.ts index 792c2bb6..2abf1c2c 100644 --- a/src/react/docs.ts +++ b/src/react/docs.ts @@ -24,6 +24,7 @@ LOCATION: Wherever the root of the app is ============================== Changes: - Add the PostHogProvider to the root of the app in the provider tree. +- Make sure to include the defaults: '2025-05-24' option in the init call. Example: --------------------------------------------------