Loading...
Loading...
Add Sentry error tracking, performance monitoring, and source maps to a web application.
npx skill4agent add spencerpauly/awesome-cursor-skills adding-error-trackingpackage.jsonnpx @sentry/wizard@latest -i nextjsnpm install @sentry/reactnpm install @sentry/nodepip install sentry-sdksentry.client.config.tssentry.server.config.tssentry.edge.config.tsmain.tsximport * as Sentry from "@sentry/react";
Sentry.init({
dsn: import.meta.env.VITE_SENTRY_DSN,
integrations: [Sentry.browserTracingIntegration()],
tracesSampleRate: 1.0,
});NEXT_PUBLIC_SENTRY_DSN=https://...@sentry.io/...
SENTRY_AUTH_TOKEN=sntrys_...
SENTRY_ORG=your-org
SENTRY_PROJECT=your-projectSentry.ErrorBoundarywithSentryConfignext.config.jstracesSampleRate0.1sentry.properties.sentryclirc.gitignoreSENTRY_AUTH_TOKEN