import { fileURLToPath, URL } from 'node:url' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import { sentryVitePlugin } from '@sentry/vite-plugin' // https://vitejs.dev/config/ export default defineConfig({ 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: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } } })