create-react-app-and-sentry-example
create-react-app-and-sentry-example copied to clipboard
Create React App and Sentry example
A complete example to the article
Commands
-
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)
How to run
- 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
License
This code is MIT License.