* chore: build pipeline for v2

* chore: run unit tests

* chore: configure sentry build
This commit is contained in:
Carlos Valente
2023-04-01 23:06:42 +02:00
committed by GitHub
parent 9338a615d4
commit 7456205b6e
27 changed files with 680 additions and 425 deletions
+14 -10
View File
@@ -6,20 +6,24 @@ import svgrPlugin from 'vite-plugin-svgr';
import { ONTIME_VERSION } from './src/ONTIME_VERSION';
const sentryAuthToken = process.env.SENTRY_AUTH_TOKEN;
const isLocal = process.env.NODE_ENV === 'local';
export default defineConfig({
plugins: [
react(),
svgrPlugin(),
sentryVitePlugin({
org: 'carlos-valente',
project: 'ontime',
include: './build',
authToken: '087754a37bb947f2ab738dfa731267ffec52a9f3a14a42f48061e343d0332c2f',
release: ONTIME_VERSION,
deploy: {
env: 'production',
},
}),
!isLocal &&
sentryVitePlugin({
org: 'get-ontime',
project: 'ontime',
include: './build',
authToken: sentryAuthToken,
release: ONTIME_VERSION,
deploy: {
env: 'production',
},
}),
],
server: {
port: 3000,