Setup & Installation
What This Skill Does
Full Sentry SDK setup for Next.js. Use when asked to add Sentry to Next.js, install @sentry/nextjs, or configure error monitoring, tracing, session replay, logging, profiling, AI monitoring, or crons for Next.js applications. Supports Next.js 13+ with App Router and Pages Router.
Covers both App and Pages Routers in a single, up-to-date flow so teams do not ship subtly broken instrumentation after a Next.js upgrade.
When to use it
- Adding @sentry/nextjs to an App Router project
- Enabling session replay on a Pages Router app
- Wiring AI monitoring into a Next.js LLM feature
- Configuring tracing for API routes and server actions
- Standardizing Sentry across a multi-app Next.js monorepo