releases.shpreview

Exception capture on by default; server-side request errors reported

@posthog/next@0.6.0

2 features1 enhancementThis release2 featuresNew capabilities1 enhancementImprovements to existing featuresAI-tallied from the release notes

0.6.0

Minor Changes

  • #3925 1b0191c Thanks @dustinbyrne! - Enable exception capture by default.
    • Client-side PostHog initialization now sets capture_exceptions: true by default. Pass clientOptions.capture_exceptions to override this.
    • Apps can export onRequestError from @posthog/next in instrumentation.ts to capture server-side request errors handled by Next.js, including in the Edge runtime.
    • Alternatively, import captureRequestError and call it from onRequestError. (2026-06-23)

Patch Changes

  • Updated dependencies [6391106]:
    • posthog-node@5.38.4

Fetched June 24, 2026