Report environment correctly in Bugsnag JS

This commit is contained in:
Matt-Yorkley
2020-03-31 15:59:17 +02:00
committed by Luis Ramos
parent 3af0365c6b
commit 49de11567b

View File

@@ -2,4 +2,9 @@
- if bugsnag_js_key.present?
%script{src: "//d2wy8f7a9ursnm.cloudfront.net/v6/bugsnag.min.js"}
:javascript
window.bugsnagClient = bugsnag("#{bugsnag_js_key}");
window.bugsnagClient = bugsnag({
apiKey: "#{bugsnag_js_key}",
beforeSend: function (report) {
report.app.releaseStage = "#{Rails.env}"
}
});