A complete example to the article
yarn start
to start dev server (Sentry initializtion will be ommited)yarn build
to build the app (Sentry initializtion will be ommited)yarn release
to build the app with Sentry and create Sentry release with its (don't forget to set SENTRY_AUTH_TOKEN)
- Fill your project data in
.sentryclirc
- Replace
YOUR_SENTRY_DSN
with your Sentry project DSN insrc/index.js
- Run
SENTRY_AUTH_TOKEN=YOUR_SENTRY_AUTH_TOKEN yarn release
This code is MIT License.