Files
ontime/client/vite.config.js
T
Carlos Valente 1bb67eb82a V2 sentry (#267)
* chore: add sentry to frontend

* chore: add sentry to server

* chore: report only in production

* chore: add sentry source maps
2022-12-08 22:34:17 +01:00

35 lines
777 B
JavaScript

import sentryVitePlugin from '@sentry/vite-plugin';
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import svgrPlugin from 'vite-plugin-svgr';
import viteTsconfigPaths from 'vite-tsconfig-paths';
import { ONTIME_VERSION } from '../server/src/version.js';
export default defineConfig({
plugins: [
react(),
viteTsconfigPaths(),
svgrPlugin(),
sentryVitePlugin({
org: "carlos-valente",
project: "ontime",
include: "./build",
authToken: process.env.SENTRY_AUTH_TOKEN,
release: ONTIME_VERSION,
}),
],
server: {
port: 3000,
},
test: {
globals: true,
setupFiles: './src/setupTests.js',
environment: 'jsdom',
},
build: {
outDir: './build',
sourcemap: true,
}
});