mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 17:03:53 +00:00
6f634c36f9
* style: correct background colours * chore: add folder resolutions to vite * refactor: add auto refetch to HTTP APIs * fix: view settings override endpoint * refactor: memoize callbacks * fix: reorder reaching wrong data adapter * refactor: memoize callbacks * style: presentation cleanup * fix(delete): prevent flow with deleted event in playback * refactor: convert to typescript * refactor: small fixes and typescript conversion * ux: improve feedback on local changes * refactor: cleanup props
41 lines
924 B
JavaScript
41 lines
924 B
JavaScript
import sentryVitePlugin from '@sentry/vite-plugin';
|
|
import react from '@vitejs/plugin-react';
|
|
import { fileURLToPath, URL } from 'node:url';
|
|
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,
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
|
},
|
|
},
|
|
});
|