[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
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
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.