Skip to content

Commit

Permalink
feat: implement crash reporter (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianoventura authored Jan 7, 2025
1 parent 44cc415 commit ff74970
Show file tree
Hide file tree
Showing 8 changed files with 1,373 additions and 59 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ jobs:
# windows cert
WINDOWS_CERTIFICATE_PATH: ./certificate.pfx
WINDOWS_CERTIFICATE_PASSWORD: ${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}
# sentry integration
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
# sentry vite plugin integration during build
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ env.SENTRY_ORG }}
SENTRY_PROJECT: ${{ env.SENTRY_PROJECT }}
run: npm run publish

- name: cleanup macos certificates
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,6 @@ resources/win/x86_64/k6
.vscode
.idea
*.sublime-workspace

# Sentry Config File
.env.sentry-build-plugin
5 changes: 5 additions & 0 deletions forge.env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ declare global {
// whether you're running in development or production).
const MAIN_WINDOW_VITE_DEV_SERVER_URL: string
const MAIN_WINDOW_VITE_NAME: string
const SENTRY_DSN: string

namespace NodeJS {
interface Process {
Expand All @@ -22,6 +23,10 @@ declare global {
VITE_DEV_SERVER_URL: `${string}_VITE_DEV_SERVER_URL`
VITE_NAME: `${string}_VITE_NAME`
}

interface K6StudioRuntimeKeys extends VitePluginRuntimeKeys {
SENTRY_DSN: string
}
}

declare module 'vite' {
Expand Down
Loading

0 comments on commit ff74970

Please sign in to comment.