Guest User

Untitled

a guest
Feb 18th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. const reportBuild = require('bugsnag-build-reporter');
  2.  
  3. /**
  4. * Notifies Bugsnag of the new release
  5. */
  6. function notifyRelease() {
  7. reportBuild({
  8. apiKey: process.env.REACT_APP_BUGSNAG_API_KEY,
  9. appVersion,
  10. releaseStage: process.env.REACT_APP_RELEASE_STAGE,
  11. })
  12. .then(() => console.log('Bugsnag build reported'))
  13. .catch(err => console.log('Reporting Bugsnag build failed', err.messsage));
  14. }
Add Comment
Please, Sign In to add comment