getsentry / sentry-dart-plugin

A Dart Build Plugin that uploads debug symbols for Android, iOS/macOS and source maps for Web to Sentry via sentry-cli
MIT License
68 stars 28 forks source link

Add config param to set url prefix #204

Closed jblankenship5 closed 3 months ago

jblankenship5 commented 9 months ago

In the CLI when uploading source maps I can specify the URL prefix if my apps assets live at a different address. Please add the same functionality for this package.

I.E. My app lives at example.com/app instead of example.com. When the errors are reported in sentry after using this plugin it cannot find the files it's looking for online because it's looking at example.com/main.dart.js.map instead of example.com/app/main.dart.js.map.

See https://docs.sentry.io/product/cli/releases/#sentry-cli-sourcemaps

buenaflor commented 3 months ago

Implemented in https://github.com/getsentry/sentry-dart-plugin/pull/253