Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/wizard/javascript/replay-onboarding/nextjs/2.configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ type: language

#### Configure

Add the following to your SDK config. There are several privacy and sampling options available, all of which can be set using the `integrations` constructor. Learn more about configuring Session Replay by reading the [configuration docs](https://docs.sentry.io/platforms/javascript/guides/nextjs/session-replay/).
Add the following to your SDK config. Several privacy and sampling options are available, all of which can be set using the `integrations` constructor. Learn more about configuring Session Replay by reading the [configuration docs](https://docs.sentry.io/platforms/javascript/guides/nextjs/session-replay/).

Alert: The Replay integration *must* be added to your *`sentry.client.config.js`* file. Adding it into `sentry.server.config.js` or `sentry.edge.config.js` may break your build.

```javascript {filename:sentry.client.config.js}
import * as Sentry from "@sentry/nextjs";
Expand All @@ -25,5 +27,3 @@ Sentry.init({
integrations: [new Sentry.Replay()],
});
```

Note: The Replay integration only needs to be added to your `sentry.client.config.js` file. It will not run if it is added into `sentry.server.config.js` or `sentry.edge.config.js`.