Quick start
Next.js
Add conciv to a Next.js app.
Next.js needs three small wires: the config wrapper, the server register hook, and the client widget.
Install
pnpm add -D @conciv/itnpm install -D @conciv/ityarn add -D @conciv/itWrap your config
import type {NextConfig} from 'next'
import {withConciv} from '@conciv/it/plugin/nextjs'
const nextConfig: NextConfig = {}
export default withConciv(nextConfig)Add the instrumentation files
export {register} from '@conciv/it/plugin/nextjs'import '@conciv/it/plugin/nextjs/widget'These three files sit at your project root next to next.config.ts:
next.config.ts
instrumentation.ts
instrumentation-client.ts
Next: Usage to see what the agent can do.