Skip to content

Commit

Permalink
feat: initialize sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyslbw committed Sep 30, 2024
1 parent 90c3fde commit ba0b6ab
Show file tree
Hide file tree
Showing 10 changed files with 581 additions and 75 deletions.
6 changes: 6 additions & 0 deletions .env.template.sentry-build-plugin
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copy this file as .env.sentry-build-plugin
# The SENTRY_AUTH_TOKEN variable is picked up by the Sentry Build Plugin.
# It's used for authentication when uploading source maps.
SENTRY_AUTH_TOKEN=
SENTRY_ORG=
SENTRY_PROJECT=
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: npm test
- name: Generates Secrets File
run: |
echo "export default { PROJECT_ID_MAINNET: '${{ secrets.PROJECT_ID_MAINNET }}', PROJECT_ID_PREVIEW: '${{ secrets.PROJECT_ID_PREVIEW }}', PROJECT_ID_PREPROD: '${{ secrets.PROJECT_ID_PREPROD }}'};" > secrets.production.js
echo "export default { PROJECT_ID_MAINNET: '${{ secrets.PROJECT_ID_MAINNET }}', PROJECT_ID_PREVIEW: '${{ secrets.PROJECT_ID_PREVIEW }}', PROJECT_ID_PREPROD: '${{ secrets.PROJECT_ID_PREPROD }}', SENTRY_DSN: '${{ secrets.SENTRY_DSN }}'};" > secrets.production.js
- name: Build
run: npm run build
- name: Upload build
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ secrets.development.js

# IDEs
.idea

# Sentry Config File
.env.sentry-build-plugin
Loading

0 comments on commit ba0b6ab

Please sign in to comment.