Created
February 16, 2019 15:08
-
-
Save jonoirwinrsa/a531c4520e449d4b7025b18e6b20a343 to your computer and use it in GitHub Desktop.
Upload Create React App sourcemaps to Bugsnag - Step 5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const reportBuild = require('bugsnag-build-reporter'); | |
/** | |
* Notifies Bugsnag of the new release | |
*/ | |
function notifyRelease() { | |
reportBuild({ | |
apiKey: process.env.REACT_APP_BUGSNAG_API_KEY, | |
appVersion, | |
releaseStage: process.env.REACT_APP_RELEASE_STAGE, | |
}) | |
.then(() => console.log('Bugsnag build reported')) | |
.catch(err => console.log('Reporting Bugsnag build failed', err.messsage)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment