Files
copilotkit__copilotkit/docs/lib/providers/providers-wrapper.tsx
Benjamin Taylor 1a76f693f0 perf(docs): trim analytics surface for LCP
- PostHog: capture_dead_clicks=false to skip dead-clicks-autocapture.js
- Drop duplicate reb2b loader (NEXT_PUBLIC_RB2B_ID); the <Script>
  in app/layout.tsx using NEXT_PUBLIC_REB2B_KEY is the canonical one
  and matches the website's reb2b key

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 17:09:00 -05:00

20 lines
565 B
TypeScript

"use client";
import React, { Suspense } from "react";
import { PostHogProvider } from "@/lib/providers/posthog-provider";
import { ScarfPixel } from "./scarf-pixel";
import { useGoogleAnalytics } from "../hooks/use-google-analytics";
import { ThemeOverride } from "@/components/theme-override";
export function ProvidersWrapper({ children }: { children: React.ReactNode }) {
useGoogleAnalytics();
return (
<Suspense fallback={null}>
<PostHogProvider>{children}</PostHogProvider>
<ThemeOverride />
<ScarfPixel />
</Suspense>
);
}