[Sentry] Workers bundle post-processing

I want to configure sorcemaps to work with Sentry. Sentry needs to inject DebugID into the minified bundle and into the sourcemap file https://docs.sentry.io/platforms/javascript/sourcemaps/uploading/cli/ It means I need some kind of build post-processing before deploying my worker. How can I achieve that?
Sentry CLI
Upload your source maps using Sentry CLI.
2 Replies
advanced
advanced10mo ago
I've worked with sentry source maps recently. you will need to upload the source maps using sentry cli which will add the debug id automatically when uploading if you do a wrangler deploy --dry-run sentry should be able to modify the files
Alexey
AlexeyOP10mo ago
ok, thanks! So I managed to do that: 1. dry-run 2. inject debug-id and deploy to Sentry 3. deploy worker --no-bundle Seems to be working.
Want results from more Discord servers?
Add your server