Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sentry add source maps #1467

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ cypress/fixtures/
cypress/videos/
cypress/screenshots/

*.log
*.log

# Sentry Config File
.env.sentry-build-plugin
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"devDependencies": {
"@pinia/testing": "^0.0.12",
"@rushstack/eslint-patch": "^1.1.0",
"@sentry/vite-plugin": "^2.22.6",
"@types/file-saver": "^2.0.5",
"@types/jsdom": "^16.2.14",
"@types/leaflet": "^1.9.0",
Expand Down
9 changes: 9 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { sentryVitePlugin } from '@sentry/vite-plugin'
import vue from '@vitejs/plugin-vue'
import path from 'path'
import { defineConfig } from 'vite'
Expand All @@ -12,6 +13,9 @@ const isElectron = process.env.ELECTRON === 'true'
const isBuilding = process.argv.includes('build')

export default defineConfig({
build: {
sourcemap: true,
},
plugins: [
(isElectron || isBuilding) &&
electron({
Expand All @@ -30,6 +34,11 @@ export default defineConfig({
startup()
},
}),
sentryVitePlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: 'blue-robotics-c7',
project: 'cockpit-frontend-production',
}),
vue(),
vuetify({
autoImport: true,
Expand Down
Loading