Skip to content

Using 'experimental-edge' runtime on NextJs pages breaks build on Vercel #7522

Closed
@jvidalv

Description

@jvidalv

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

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: []
})

Steps to Reproduce

Having configured:

export const config = {
  runtime: 'experimental-edge'
}

On any given page seems to make sentry crash on build time.

Expected Result

To not crash on build.

Actual Result

image

Metadata

Metadata

Assignees

Labels

Package: nextjsIssues related to the Sentry Nextjs SDK

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions