-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Package: nextjsIssues related to the Sentry Nextjs SDKIssues related to the Sentry Nextjs SDK
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/nextjs
SDK Version
7.21.0
Framework Version
Next.js v12.3.0
Link to Sentry event
No response
Steps to Reproduce
In a sentry.server.config.js
, use the beforeSend
:
Sentry.init({
...
beforeSend(event) {
console.log("SENTRY EVENT");
return event;
},
});
Expected Result
The console log of "SENTRY EVENT" doesn't show up in the terminal.
Using the same method in a sentry.client.config.js
does, however, trigger the console log in the browser's console.
Actual Result
I'm uncertain if this is intended or neglected. It seems that the client and server use different config SDK's.
I was only able to find the type definition of beforeSend
in the client config, not server config.
Metadata
Metadata
Assignees
Labels
Package: nextjsIssues related to the Sentry Nextjs SDKIssues related to the Sentry Nextjs SDK