added sentry/vite-plugin
This commit is contained in:
parent
11a297ddf9
commit
e7221cd5f0
779
package-lock.json
generated
779
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -20,6 +20,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rushstack/eslint-patch": "^1.2.0",
|
"@rushstack/eslint-patch": "^1.2.0",
|
||||||
|
"@sentry/vite-plugin": "^0.7.2",
|
||||||
"@vitejs/plugin-vue": "^4.0.0",
|
"@vitejs/plugin-vue": "^4.0.0",
|
||||||
"@vue/eslint-config-prettier": "^7.1.0",
|
"@vue/eslint-config-prettier": "^7.1.0",
|
||||||
"@vue/test-utils": "^2.3.0",
|
"@vue/test-utils": "^2.3.0",
|
||||||
|
@ -2,10 +2,33 @@ import { fileURLToPath, URL } from 'node:url'
|
|||||||
|
|
||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import vue from '@vitejs/plugin-vue'
|
import vue from '@vitejs/plugin-vue'
|
||||||
|
import { sentryVitePlugin } from '@sentry/vite-plugin'
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [vue()],
|
plugins: [
|
||||||
|
vue(),
|
||||||
|
sentryVitePlugin({
|
||||||
|
org: "derdritte",
|
||||||
|
project: "vue-sentry",
|
||||||
|
url: "https://sentry.derdritte.net",
|
||||||
|
|
||||||
|
// Auth tokens can be obtained from https://sentry.io/settings/account/api/auth-tokens/
|
||||||
|
// and need `project:releases` and `org:read` scopes
|
||||||
|
authToken: process.env.SENTRY_AUTH_TOKEN,
|
||||||
|
|
||||||
|
sourcemaps: {
|
||||||
|
// Specify the directory containing build artifacts
|
||||||
|
assets: "./dist/**",
|
||||||
|
},
|
||||||
|
|
||||||
|
// Use the following option if you're on an SDK version lower than 7.47.0:
|
||||||
|
// include: "./dist",
|
||||||
|
|
||||||
|
// Optionally uncomment the line below to override automatic release name detection
|
||||||
|
// release: process.env.RELEASE,
|
||||||
|
}),
|
||||||
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'@': fileURLToPath(new URL('./src', import.meta.url))
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||||||
|
Loading…
Reference in New Issue
Block a user