Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Update posthog package and fix the api_host
Vasek Mlejnsky2a19c2dcb3a2
diff --git a/apps/web/package.json b/apps/web/package.jsonindex df6a6d866..5cbfa3c2e 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -53,7 +53,7 @@"mdx-annotations": "^0.1.1","next": "14.2.5","next-themes": "^0.2.1",- "posthog-js": "^1.77.1",+ "posthog-js": "^1.148.0","react": "18.2.0","react-dom": "18.2.0","react-highlight-words": "^0.20.0",diff --git a/apps/web/src/utils/usePostHog.tsx b/apps/web/src/utils/usePostHog.tsxindex b004e0e33..227161839 100644--- a/apps/web/src/utils/usePostHog.tsx+++ b/apps/web/src/utils/usePostHog.tsx@@ -11,7 +11,7 @@ export function maybeInit() {posthog?.init(process.env.NEXT_PUBLIC_POSTHOG_KEY, {// Note that PostHog will automatically capture page views and common events- api_host: '/docs/ingest', // BEWARE: basePath "docs" is needed+ api_host: '/ingest', // BEWARE: basePath "docs" is neededdisable_session_recording: process.env.NODE_ENV !== 'production',advanced_disable_toolbar_metrics: true,opt_in_site_apps: true,