SDKs
Next.js SDK
Package: @veriq/next
Client component that captures errors, Web Vitals, navigation breadcrumbs, and console calls. Works with App Router and Pages Router.
Install with Claude Code
Install with Claude Code
Paste this prompt into Claude Code. It will install the SDK, configure your app, and add the DSN env var automatically.
Add the @veriq/next SDK to my Next.js project.
Steps:
1. Run: npm install @veriq/next
2. In app/layout.tsx, import VeriqClient from '@veriq/next' and render <VeriqClient dsn={process.env.NEXT_PUBLIC_VERIQ_DSN!} /> inside <body>
3. Add NEXT_PUBLIC_VERIQ_DSN=[YOUR_DSN] to .env.local
4. Optionally add NEXT_PUBLIC_APP_VERSION and NEXT_PUBLIC_ENV env vars
5. Verify by triggering a test error: import { captureException } from '@veriq/next' and call captureException(new Error('test')) from a button click
My DSN: [paste your DSN from Project Settings → API Keys]Install
VeriqClient
Add to your root layout inside <body>: