Skip to content

Commit 4427c38

Browse files
RISCfutureclaude
andcommitted
Bugsnag -> Sentry
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent e1df2e9 commit 4427c38

6 files changed

Lines changed: 220 additions & 247 deletions

File tree

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_SENTRY_DSN=your_sentry_dsn_here

.github/workflows/deploy.yml

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
run: yarn install
4444
- name: Build
4545
run: yarn build
46+
env:
47+
VITE_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
4648
- name: Upload
4749
uses: actions/upload-pages-artifact@v3
4850
with:
@@ -55,12 +57,28 @@ jobs:
5557
runs-on: ubuntu-latest
5658
needs: build
5759
steps:
58-
- name: Deploy to GitHub Pages
59-
id: deployment
60-
uses: actions/deploy-pages@v4
61-
- name: Notify Bugsnag
62-
uses: psprings/bugsnag-release-action@v0.0.3
63-
with:
64-
apiKey: ${{ secrets.BUGSNAG_API_KEY }}
65-
appVersion: ${{ github.sha }}
66-
releaseStage: production
60+
- name: Checkout
61+
uses: actions/checkout@v4
62+
with:
63+
fetch-depth: 0
64+
- name: Download artifact
65+
uses: actions/download-artifact@v4
66+
with:
67+
name: github-pages
68+
- name: Extract artifact
69+
run: |
70+
mkdir -p dist
71+
tar -xvf artifact.tar -C dist
72+
- name: Deploy to GitHub Pages
73+
id: deployment
74+
uses: actions/deploy-pages@v4
75+
- name: Create Sentry release
76+
uses: getsentry/action-release@v3
77+
env:
78+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
79+
SENTRY_ORG: timcodes
80+
SENTRY_PROJECT: icrashedmyplane
81+
with:
82+
environment: production
83+
version: ${{ github.sha }}
84+
sourcemaps: "./dist"

package.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@
2020
"type-check": "vue-tsc --build"
2121
},
2222
"dependencies": {
23-
"@bugsnag/browser-performance": "^3.0.0",
24-
"@bugsnag/js": "^8.6.0",
25-
"@bugsnag/plugin-vue": "^8.6.0",
2623
"@intlify/core-base": "^11.1.12",
24+
"@sentry/vue": "^10.18.0",
2725
"cldr-data": "^36.0.4",
2826
"cldrjs": "^0.5.5",
2927
"lodash-es": "^4.17.21",
@@ -41,18 +39,18 @@
4139
"@types/cldrjs": "^0.4.28",
4240
"@types/jsdom": "^27.0.0",
4341
"@types/lodash-es": "^4.17.12",
44-
"@types/node": "^24.6.2",
42+
"@types/node": "^24.7.0",
4543
"@types/setimmediate": "^1.0.4",
46-
"@typescript-eslint/utils": "^8.45.0",
44+
"@typescript-eslint/utils": "^8.46.0",
4745
"@vitejs/plugin-vue": "^6.0.1",
48-
"@vitest/eslint-plugin": "^1.3.15",
46+
"@vitest/eslint-plugin": "^1.3.16",
4947
"@vue/compiler-dom": "^3.5.22",
5048
"@vue/eslint-config-prettier": "^10.2.0",
5149
"@vue/eslint-config-typescript": "^14.6.0",
5250
"@vue/server-renderer": "^3.5.22",
5351
"@vue/test-utils": "^2.4.6",
5452
"@vue/tsconfig": "^0.8.1",
55-
"cypress": "^15.3.0",
53+
"cypress": "^15.4.0",
5654
"cypress-vite": "^1.8.0",
5755
"eslint": "^9.37.0",
5856
"eslint-plugin-cypress": "^5.2.0",
@@ -77,7 +75,7 @@
7775
"vite-plugin-vue-devtools": "^8.0.2",
7876
"vitest": "^3.2.4",
7977
"vue-eslint-parser": "^10.2.0",
80-
"vue-tsc": "^3.1.0"
78+
"vue-tsc": "^3.1.1"
8179
},
82-
"packageManager": "yarn@4.9.2"
80+
"packageManager": "yarn@4.10.3"
8381
}

src/config/bugsnag.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/main.ts

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import bugsnagVue from '@/config/bugsnag'
2-
31
import './assets/fonts/Quicksand-VariableFont_wght.ttf'
42

53
import 'normalize.css'
@@ -9,13 +7,36 @@ import './assets/styles/transitions.scss'
97

108
import { createApp } from 'vue'
119
import { createPinia } from 'pinia'
10+
import * as Sentry from '@sentry/vue'
11+
import { createSentryPiniaPlugin } from '@sentry/vue'
1212
import i18n from '@/i18n'
1313
import App from './App.vue'
1414

1515
const app = createApp(App)
1616

17+
const sentryDSN = import.meta.env.VITE_SENTRY_DSN
18+
Sentry.init({
19+
app,
20+
dsn: sentryDSN,
21+
sendDefaultPii: true,
22+
integrations: [
23+
Sentry.vueIntegration({
24+
tracingOptions: {
25+
trackComponents: true
26+
}
27+
}),
28+
Sentry.replayIntegration()
29+
],
30+
tracesSampleRate: 1.0,
31+
enableLogs: true,
32+
replaysSessionSampleRate: 0.1,
33+
replaysOnErrorSampleRate: 1.0
34+
})
35+
36+
const pinia = createPinia()
37+
pinia.use(createSentryPiniaPlugin())
38+
app.use(pinia)
39+
1740
app.use(i18n)
18-
app.use(createPinia())
19-
if (bugsnagVue) app.use(bugsnagVue)
2041

2142
app.mount('#app')

0 commit comments

Comments
 (0)