sentry-nextjs-sdk

Automate Sentry SDK setup and configuration for Next.js applications.

1|Updated May 4, 2026
One-click install
npx skills add https://github.com/lmiguelvargasf/nexa --skill sentry-nextjs-sdk-lmiguelvargasf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sentry-nextjs-sdk
Source: https://github.com/lmiguelvargasf/nexa/tree/main/.agents/skills/sentry-nextjs-sdk
Command: npx skills add https://github.com/lmiguelvargasf/nexa --skill sentry-nextjs-sdk-lmiguelvargasf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @sentry/nextjs, node.js, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the setup and configuration of Sentry for Next.js applications, saving time and reducing the potential for errors during the setup process.

Core Features & Use Cases

  • SDK Configuration: Automated setup of the Sentry SDK across browser, Node.js server, and Edge runtime.
  • Error Monitoring: Automatically captures client, server, and edge runtime errors.
  • Feature Configuration: Configures error monitoring, tracing, session replay, logging, profiling, AI monitoring, and crons based on project requirements.
  • Use Case: Use this Skill when starting a new Next.js project or adding Sentry to an existing project to ensure proper setup and integration.

Quick Start

Run the following command to start the Sentry setup wizard for your Next.js application:

npx @sentry/wizard@latest -i nextjs

Frequently Asked Questions about sentry-nextjs-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Sentry error monitoring in a Next.js application?

To set up Sentry error monitoring in a Next.js application, you can run the automated setup wizard to initialize the SDK across browser, Node.js server, and Edge runtime environments, capturing client and server errors automatically.

Can I configure session replay and tracing for my Next.js project with Sentry?

Yes, you can configure session replay and tracing for your Next.js project. The setup process automates feature configuration for error monitoring, tracing, session replay, logging, profiling, AI monitoring, and crons based on your project requirements.

Does the Sentry Next.js SDK support both client and server runtime environments?

Yes, the Sentry Next.js SDK supports both client and server runtime environments. The automated setup configures the SDK across the browser, Node.js server, and Edge runtime to capture errors and apply tracing throughout your full-stack application.

What do I need to install before integrating Sentry into my Next.js app?

Before integrating Sentry into your Next.js app, you need Node.js installed and the @sentry/nextjs package available, as these dependencies are required for the SDK to function and properly initialize error monitoring across your application.

What is the best way to automate Sentry configuration for a full-stack Next.js application?

The best way to automate Sentry configuration for a full-stack Next.js application is using the setup wizard command npx @sentry/wizard@latest -i nextjs, which handles SDK initialization and feature setup to reduce manual configuration errors.