@provenly/adaptive-next
v0.1.0
Published
Next.js integration for the Adaptive framework-agnostic runtime.
Readme
@provenly/adaptive-next
Next.js client integration. Use AdaptiveNextProvider once in a client
boundary such as app/providers.tsx; the observer itself remains in
@provenly/adaptive-runtime and works across route transitions.
'use client';
import { AdaptiveNextProvider } from '@provenly/adaptive-next';
export function Providers({ children }: { children: React.ReactNode }) {
return <AdaptiveNextProvider projectId="..." runtimeKey="adp_pk_..." apiBaseUrl="https://api.example.com">{children}</AdaptiveNextProvider>;
}