Skip to content

Commit

Permalink
❌ removy dynamically adding sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
devmount committed Jan 22, 2024
1 parent 9be390b commit 5a6e24d
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions frontend/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@ import { fileURLToPath, URL } from 'node:url';
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';

const plugins = [vue()];
if (import.meta.env?.VITE_SENTRY_DSN) {
plugins.push(sentryVitePlugin({
org: 'thunderbird',
project: 'appointment-frontend',
}));
}

export default defineConfig({
plugins: plugins,

plugins: [
vue(),
sentryVitePlugin({
org: 'thunderbird',
project: 'appointment-frontend',
})
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
Expand Down

0 comments on commit 5a6e24d

Please sign in to comment.