mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-11 18:33:53 +00:00
1bb67eb82a
* chore: add sentry to frontend * chore: add sentry to server * chore: report only in production * chore: add sentry source maps
35 lines
777 B
JavaScript
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,
|
|
}
|
|
});
|