diff --git a/src/wizard/javascript/replay-onboarding/nextjs/2.configure.md b/src/wizard/javascript/replay-onboarding/nextjs/2.configure.md index b78ee70c00244..aec121da833b2 100644 --- a/src/wizard/javascript/replay-onboarding/nextjs/2.configure.md +++ b/src/wizard/javascript/replay-onboarding/nextjs/2.configure.md @@ -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"; @@ -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`.