Sentry Next.js SDK

•
19
•

Automates the setup and configuration of Sentry for Next.js applications to provide full-stack observability and error tracking.

This skill provides an opinionated and automated workflow for integrating the Sentry SDK into Next.js 13+ projects. It handles complex setup tasks across browser, Node.js, and Edge runtimes, including configuring error boundaries, server action wrapping, session replays, and automated source map uploads. By scanning the project structure and router types, it ensures best practices for observability are implemented while minimizing manual configuration errors and ensuring production-ready error monitoring.

Key Features

01Support for Session Replay, Profiling, AI Monitoring, and Crons
02Smart detection of existing project setup and instrumentation hooks
0319 GitHub stars
04Seamless integration with both App Router and Pages Router
05Automated source map upload setup for readable production stack traces
06Automated multi-runtime configuration for Client, Node.js, and Edge

Use Cases

01Setting up Session Replay to debug user-reported issues with visual context
02Initializing Sentry error tracking in a new or existing Next.js 14/15 project
03Configuring distributed tracing across client-side and server-side components