vshab / create-react-app-and-sentry-example

34 stars 5 forks source link

Need .env example file #5

Open Santheepkumar opened 4 years ago

Santheepkumar commented 4 years ago

Need .env example file and add how to get auth token in readme file sir.or else explain me to how to do that????

Thankyou

DHBrett commented 3 years ago

@Santheepkumar not sure if you still need this, but here's the sentry docs: https://docs.sentry.io/product/cli/configuration/#to-authenticate-manually

You can use: https://sentry.io/settings/account/api/auth-tokens/ to generate a token and then can pass it as an env variable or add this to your .sentryclirc file:

[auth]
token=your-auth-token

They don't recommend checking your auth token into your repo, but if you decide to do it anyway, you should at least scope down the permissions on the token to only project:releases which is all you need for this use case.