diff --git a/packages/landing-v0/app/providers/posthog-provider.tsx b/packages/landing-v0/app/providers/posthog-provider.tsx index d5827c8..c397097 100644 --- a/packages/landing-v0/app/providers/posthog-provider.tsx +++ b/packages/landing-v0/app/providers/posthog-provider.tsx @@ -2,7 +2,7 @@ import posthog from 'posthog-js'; import { PostHogProvider } from 'posthog-js/react'; -import { useEffect } from 'react'; +import { useEffect, Suspense } from 'react'; import { usePathname, useSearchParams } from 'next/navigation'; if (typeof window !== 'undefined') { @@ -15,7 +15,7 @@ if (typeof window !== 'undefined') { }); } -export function PHProvider({ children }: { children: React.ReactNode }) { +function PageViewTracker() { const pathname = usePathname(); const searchParams = useSearchParams(); @@ -32,5 +32,16 @@ export function PHProvider({ children }: { children: React.ReactNode }) { } }, [pathname, searchParams]); - return {children}; + return null; +} + +export function PHProvider({ children }: { children: React.ReactNode }) { + return ( + + + + + {children} + + ); } \ No newline at end of file diff --git a/packages/landing-v0/package.json b/packages/landing-v0/package.json index a94d281..63b3612 100644 --- a/packages/landing-v0/package.json +++ b/packages/landing-v0/package.json @@ -29,12 +29,12 @@ "framer-motion": "^11.0.3", "geist": "^1.2.1", "lucide-react": "^0.323.0", - "next": "14.1.0", + "next": "15.1.0", "next-themes": "^0.2.1", "posthog-js": "^1.209.1", - "react": "18.2.0", + "react": "19.0.0", "react-circular-progressbar": "^2.1.0", - "react-dom": "18.2.0", + "react-dom": "19.0.0", "tailwind-merge": "^2.2.1", "tailwindcss-animate": "^1.0.7" },