Skip to content

Commit e17fd01

Browse files
committed
tweaks
1 parent 3d09d1a commit e17fd01

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

docs/product/ai-in-sentry/sentry-prevent-ai/index.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Sentry Prevent AI
33
sidebar_order: 30
4-
description: "Sentry Prevent AI reviews code and generates tests to improve quality and test coverage."
4+
description: "AI-assisted code review and test generation to improve quality and test coverage."
55
---
66

77
Sentry Prevent AI is a generative AI assistant developed by Sentry that reviews your pull requests, suggests improvements, and generates tests for uncovered code before you merge.
@@ -12,12 +12,12 @@ Sentry Prevent AI is a generative AI assistant developed by Sentry that reviews
1212

1313
## Getting Started
1414

15-
1. *Install the* [Seer by Sentry app](https://github.com/apps/seer-by-sentry) in your GitHub organization or specific repositories.
16-
2. *Enable these required settings* in your Sentry [organization settings](https://sentry.io/settings/organization/):
17-
_Show Generative AI Features_
18-
_Enable PR Review and Test Generation_
15+
1. Install the [Seer by Sentry app](https://github.com/apps/seer-by-sentry) in your GitHub organization or specific repositories.
16+
2. Enable these required settings in your Sentry [organization settings](https://sentry.io/settings/organization/):
17+
- _Show Generative AI Features_
18+
- _Enable PR Review and Test Generation_
1919

20-
*If you're not an admin*, share the Sentry Prevent AI GitHub App Integration link with your organization's admin or owner to install.
20+
If you're not an admin, share the Sentry Prevent AI GitHub App Integration link with your organization's admin or owner to install.
2121

2222
## Sentry Prevent AI Commands
2323

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,5 +148,6 @@
148148
"volta": {
149149
"node": "22.16.0",
150150
"yarn": "1.22.22"
151-
}
152-
}
151+
},
152+
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
153+
}

src/instrumentation.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import * as Sentry from '@sentry/nextjs';
22

33
export function register() {
4+
// Skip Sentry initialization in development if DSN is not set
5+
if (process.env.NODE_ENV === 'development' && !process.env.SENTRY_DSN) {
6+
console.log('Skipping Sentry initialization in development (no DSN configured)');
7+
return;
8+
}
9+
410
if (process.env.NEXT_RUNTIME === 'nodejs') {
511
Sentry.init({
612
dsn: process.env.SENTRY_DSN,

0 commit comments

Comments
 (0)