Skip to content

Commit c3f60e1

Browse files
Add default Next.js event environment (#3519)
This PR adds the corresponding docs for getsentry/sentry-javascript#3495, where the `process.env.NODE_ENV` is added as the `environment` by default.
1 parent fa0ecad commit c3f60e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/includes/getting-started-config/javascript.nextjs.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ const handler = async (req, res) => {
2828

2929
export default withSentry(handler);
3030
```
31+
32+
By default, the SDK sets the environment for events to `process.env.NODE_ENV`, although you can [set your own](/platforms/javascript/guides/nextjs/configuration/environments/).

0 commit comments

Comments
 (0)