Skip to content

Commit dbe7f96

Browse files
MikevPeerenijjk
andauthored
Update Sentry example readme to mention Next.js 12 support (vercel#32724)
@sentry/nextjs support has changed as it now supports version from 10.0.8 also meaning they support Next.Js 12 ## Documentation / Examples - [x] Make sure the linting passes by running `yarn lint` Co-authored-by: JJ Kasper <[email protected]>
1 parent ff57363 commit dbe7f96

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/with-sentry/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Sentry
22

3-
_Note: `@sentry/nextjs` is not yet guaranteed to be compatible with the newly-released Next.js 12. This example therefore uses Next.js 11._
3+
_Note: Currently, the minimum Next.js supported version of `@sentry/nextjs` is 10.0.8._
44

5-
This is an example showing how to use [Sentry](https://sentry.io) to catch and report errors and monitor the performance of both the front and back ends, using the [official Sentry SDK for Next.js](https://docs.sentry.io/platforms/javascript/guides/nextjs/).
5+
This is an example showing how to use [Sentry](https://sentry.io) to catch and report errors and monitor the performance of both the front and back ends, using the [official Sentry SDK for Next.js](https://docs.sentry.io/platforms/javascript/guides/nextjs/). This example contains the following:
66

77
- `sentry.server.config.js` and `sentry.client.config.js` are used to configure and initialize Sentry
88
- `next.config.js` automatically injects Sentry into your app using `withSentryConfig`
@@ -47,6 +47,8 @@ Next, run [`sentry-wizard`](https://docs.sentry.io/platforms/javascript/guides/n
4747
npx @sentry/wizard -i nextjs
4848
```
4949

50+
_Beware that above command creates files extended with `.wizardcopy.js` as the example already contains the config files._
51+
5052
Once the files are created, you can further configure your app by adding [SDK settings](https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/) to `sentry.server.config.js` and `sentry.client.config.js`, and [`SentryWebpackPlugin` settings](https://github.com/getsentry/sentry-webpack-plugin#options) to `next.config.js`.
5153

5254
(If you'd rather do the SDK set-up manually, [you can do that, too](https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/).)

0 commit comments

Comments
 (0)