@nacew/performance-next
v0.4.0
Published
Next.js helpers for the uTestMe performance SDK.
Readme
@nacew/performance-next
Next.js helper for uTestMe performance init.
npm install @nacew/performance-next @nacew/performance-react// app/providers.tsx
"use client";
import { UTestMePerformanceProvider } from "@nacew/performance-react";
export function Providers({ children }: { children: React.ReactNode }) {
return (
<UTestMePerformanceProvider
config={{
projectKey: process.env.NEXT_PUBLIC_LOGPULSE_KEY!,
endpoint: process.env.NEXT_PUBLIC_LOGPULSE_URL!,
environment: process.env.NEXT_PUBLIC_LOGPULSE_ENV ?? "production",
}}
>
{children}
</UTestMePerformanceProvider>
);
}Names from before 0.4
The SDK used to be called LogPulse. Every export still exists under its old
LogPulse… name (initLogPulsePerformance, LogPulsePerformanceProvider,
LogPulseProfiler, …) as the same function, component or type as the
UTestMe… one, marked @deprecated. Existing apps keep working without
changes and can switch names whenever convenient; mixing both is fine.
