Skip to content

Commit

Permalink
feat: add support for Sentry (#1352)
Browse files Browse the repository at this point in the history
* chore: add sentry to package.json
* chore: git ignore .sentryclirc
* fix: add sentry config init
* fix: add SENTRY_AUTH_TOKEN to GitHub CI environment
* chore: add sentry placeholders to local.env.sample
* fix: add auth token to lint task
* fix: add environment to sentry
  • Loading branch information
paulschreiber authored Dec 7, 2023
1 parent 2e2b06d commit d5b2c53
Show file tree
Hide file tree
Showing 8 changed files with 322 additions and 20 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
jobs:
lint:
runs-on: ubuntu-latest
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

steps:
- name: Checkout
Expand Down Expand Up @@ -79,6 +81,8 @@ jobs:

build:
runs-on: ubuntu-latest
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

steps:
- name: Checkout
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ local.env

# generated
src/terrasoApi/shared/graphqlSchema

# Sentry Config File
.sentryclirc
4 changes: 3 additions & 1 deletion local.env.sample
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
REACT_APP_TERRASO_ENV=local
ENV=development
REACT_APP_TERRASO_API_URL=http://127.0.0.1:8000
REACT_APP_PLAUSIBLE_DOMAIN=app.local.terraso.org
REACT_APP_SHARED_DATA_ACCEPTED_EXTENSIONS=csv,doc,docx,pdf,ppt,pptx,xlsx,xls
REACT_APP_IMAGE_ACCEPTED_EXTENSIONS=jpeg,jpg
REACT_APP_MAPBOX_ACCESS_TOKEN=
SENTRY_AUTH_TOKEN=sntrys_eyxxxxxxxxxxx
SENTRY_DSN=https://[email protected]/abcd
Loading

0 comments on commit d5b2c53

Please sign in to comment.