
Sentry Nextjs Sdk
getsentry/sentry-for-aiOfficial
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
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, andsentry.edge.config.ts, pluswithSentryConfig()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 -yInstalls 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(), orglobal-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- Sentry Sdk Setup3.8K
- Sentry Cocoa Sdk3.7K
- Sentry Node Sdk3.5K
- Sentry React Sdk3.3K
- Sentry Sdk Upgrade3.2K
- Sentry Setup Ai Monitoring3.1K
- Sentry Browser Sdk3.1K
- Sentry Cloudflare Sdk2.8K
- Sentry Python Sdk2.7K
- Sentry Nestjs Sdk2.6K
- Sentry Sdk Skill Creator2.5K
- Sentry Otel Exporter Setup2.5K
- Sentry Android Sdk2.4K
- Sentry Dotnet Sdk2.4K
- Sentry Php Sdk2.4K
- Sentry Flutter Sdk2.3K
- Sentry Go Sdk2.3K
- Sentry Svelte Sdk2.3K
- Sentry Ruby Sdk2.2K
- Sentry Elixir Sdk2.1K
- Sentry Tanstack Start Sdk2K
- Sentry React Router Framework Sdk2K
- Sentry Instrumentation Guide1.3K
- Sentry Fix Issues10.7K
Similar to Sentry Nextjs Sdk
More Debugging
sentry-react-router-framework-sdkSkillgetsentry/sentry-for-ai2K installsSentry SDK setup for React Router v7 framework apps covering errors, tracing, replay, logs, and feedback.
sentry-react-sdkSkillgetsentry/sentry-for-ai3.3K installsOfficial Sentry SDK setup for React apps covering errors, tracing, session replay, profiling, and logging.
sentryPluginTheBushidoCollective/han201 starsBest practices and patterns for Sentry error monitoring and observability.
error-trackingSkillaj-geddes/useful-ai-prompts465 installsSentry-based error tracking that captures exceptions, releases, and performance issues in production.
integration-nextjs-app-routerSkillposthog/skills322 installsGuided PostHog analytics integration for Next.js App Router apps, following a four-step setup workflow.