Skip to content

Commit

Permalink
sentry traces added
Browse files Browse the repository at this point in the history
  • Loading branch information
unixvb committed Nov 18, 2024
1 parent 89d7943 commit 1519df9
Show file tree
Hide file tree
Showing 4 changed files with 389 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ dist-ssr
*.njsproj
*.sln
*.sw?

# Sentry Config File
.env.sentry-build-plugin
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@reduxjs/toolkit": "^2.3.0",
"@rnw-community/shared": "^0.77.0",
"@sentry/react": "^8.38.0",
"@sentry/vite-plugin": "^2.22.6",
"@ton-api/client": "^0.2.0",
"@ton/core": "^0.59.0",
"@ton/crypto": "^3.3.0",
Expand Down
14 changes: 12 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {sentryVitePlugin} from '@sentry/vite-plugin';
import react from '@vitejs/plugin-react';
import {defineConfig} from 'vite';
import mkcert from 'vite-plugin-mkcert';
Expand All @@ -6,8 +7,17 @@ import Terminal from 'vite-plugin-terminal';
// https://vitejs.dev/config/
export default defineConfig({
base: process.env.VITE_BASE_URL ?? '/',
plugins: [react(), mkcert({force: true}), Terminal()],
plugins: [
react(),
mkcert({force: true}),
Terminal(),
sentryVitePlugin({
org: 'rainbowag',
project: 'rainbow-ag'
})
],
build: {
minify: 'terser'
minify: 'terser',
sourcemap: true
}
});
Loading

0 comments on commit 1519df9

Please sign in to comment.