import * as Sentry from '@sentry/nextjs'
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
environment: process.env.NEXT_PUBLIC_VERCEL_ENV ?? 'development',
tracesSampleRate: 1.0,
beforeSend(event) {
if (event.user) {
// Don't send user's IP address
delete event.user.ip_address
}
return event
},
ignoreErrors: []
})
export const config = {
runtime: 'experimental-edge'
}
On any given page seems to make sentry crash on build time.
To not crash on build.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g.
bundle.tracing.min.js) in your SDK setup.@sentry/nextjs
SDK Version
7.43.0
Framework Version
13.2.4
Link to Sentry event
No response
SDK Setup
Steps to Reproduce
Having configured:
On any given page seems to make sentry crash on build time.
Expected Result
To not crash on build.
Actual Result