Skip to content

astro: Remove deprecated sourceMapsUploadOptions build option #23624

Description

@andreiborza

@sentry/astro still accepts the deprecated sourceMapsUploadOptions build option. The other meta-framework SDKs dropped theirs for v11, so astro is the last one carrying it.

Current state

Astro's other v11 build-option cleanup was done piecemeal, which is likely how this slipped: unstable_sentryVitePluginOptions was handled in #23342 and release / debug in #22248, but nothing covered this option.

What to do

Remove sourceMapsUploadOptions from sentryAstro() and have users move its fields to the top level, matching solidstart, react-router, nuxt and sveltekit. Note that enabled is replaced by sourcemaps.disable (inverted) in the other SDKs, so astro should follow the same shape.

Migration guide

MIGRATION.md currently scopes the "Meta-framework build options" entry to nuxt and sveltekit, which is accurate today. Add astro to that entry as part of this change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions