2023-04-27 14:07:39 +02:00
|
|
|
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
|
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
import vue from '@vitejs/plugin-vue'
|
2023-04-27 15:26:29 +02:00
|
|
|
import { sentryVitePlugin } from '@sentry/vite-plugin'
|
2023-04-27 14:07:39 +02:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
2023-04-27 15:26:29 +02:00
|
|
|
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,
|
|
|
|
}),
|
|
|
|
],
|
2023-04-27 14:07:39 +02:00
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|