Skip to content

Sentry SDK code is injected in prod builds if no DSN is set #9783

Closed
@Lms24

Description

@Lms24

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/astro

SDK Version

7.86.0

Framework Version

Astro 4.x

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

Create Astro project, add Sentry SDK (+ add Spotlight)

Expected Result

When only using Sentry for Spotlight (i.e. not sending stuff to Sentry), the Sentry SDK code shouldn't end up in the prod bundles

Actual Result

When only using Sentry for Spotlight (i.e. not sending stuff to Sentry), the Sentry SDK code is currently added to the prod bundles

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: astroIssues related to the Sentry Astro SDK

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions