From a795efd9cda63036ed2c9b98326ace1cc59904cf Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto Date: Tue, 27 Oct 2026 09:31:07 +0100 Subject: [PATCH] chore: use latest PostHog SDK defaults --- gatsby/onPreBootstrap.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/gatsby/onPreBootstrap.ts b/gatsby/onPreBootstrap.ts index b60458567756..4dba08f42781 100644 --- a/gatsby/onPreBootstrap.ts +++ b/gatsby/onPreBootstrap.ts @@ -100,6 +100,7 @@ export const onPreBootstrap: GatsbyNode['onPreBootstrap'] = async ({ cache, stor posthog.init("${process.env.GATSBY_POSTHOG_API_KEY}", { api_host: "${process.env.GATSBY_POSTHOG_API_HOST}", ui_host: "${process.env.GATSBY_POSTHOG_UI_HOST}", + defaults: 'latest', ${assetHostConfig}capture_pageview: false, capture_pageleave: true, // A windowed page scrolls inside its app window, not the document, so the default