New advertisers: 50% off your first month with code FIRSTMONTHSee slots
getsentry avatar

Sentry Nextjs Sdk

Full Sentry SDK setup for Next.js covering browser, Node.js server, and Edge runtimes.

skills.sh installs
3.8K
GitHub stars
280
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers the complete setup flow: detect the project, recommend features, then guide wizard or manual configuration
  • Includes config files for instrumentation-client.ts, sentry.server.config.ts, and sentry.edge.config.ts, plus withSentryConfig() wrapping
  • Enables error monitoring, tracing, session replay, and logging by default, with profiling, AI monitoring, crons, and metrics as opt-in
  • Designed for Next.js 13+ projects using App Router or Pages Router that need error monitoring and performance tracing

Install

$ npx -y skills add getsentry/sentry-for-ai --skill sentry-nextjs-sdk -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

All Skills > SDK Setup > Next.js SDK

Sentry Next.js SDK

Opinionated wizard that scans your Next.js project and guides you through complete Sentry setup across all three runtimes: browser, Node.js server, and Edge.

Invoke This Skill When

  • User asks to "add Sentry to Next.js" or "set up Sentry" in a Next.js app
  • User wants to install or configure @sentry/nextjs
  • User wants error monitoring, tracing, session replay, logging, or profiling for Next.js
  • User asks about instrumentation.ts, withSentryConfig(), or global-error.tsx
  • User wants to capture server actions, server component errors, or edge runtime errors

Note: SDK versions and APIs below reflect current Sentry docs at time of writing (@sentry/nextjs ≥8.28.0). Always verify against docs.sentry.io/platforms/javascript/guides/nextjs/ before implementing.


Phase 1: Detect

Run these commands to understand the project before making any recommendations:

# Detect Next.js version and existing Sentry
cat package.json | grep -E '"next"|"@sentry/'

Details

Repository
github.com/getsentry/sentry-for-ai
Categories
Debugging, Frontend & UI Code
First seen
Apr 16, 2026

More from getsentry/sentry-for-ai

All 27

Similar to Sentry Nextjs Sdk

More Debugging