Skip to content

Commit 54974f9

Browse files
committed
tweaks
1 parent 3d09d1a commit 54974f9

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
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

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)