Mike Bull from our engineering team in Bath, England shares how to get setup with this feature he built.
To upload source maps you need to make a request to https://upload.bugsnag.com/. You can specify the Notifier API key for the project, the minified URL, and the source map file and it will be uploaded to our servers. We will then use that uploaded source map file whenever we receive an error event from that URL. You can also specify which version of your app the file applies to and upload the associated source files if required. You can learn more about this in the Bugsnag’ documentation.
Uploading the source map allows us to gather the required information to reverse minification without you needing to host your source files (which may be sensitive). It also means that we won’t need to go to your servers to fetch the files every time an error is received (reducing the load on your servers).
In the case you do want to host them yourself, we still support fetching the source maps on the fly if you include the
And for the latest feature updates from our team, follow us on Twitter.