Skip to content

Commit

Permalink
feat: install sentry vite plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mplewis committed Nov 20, 2024
1 parent bcd4530 commit d303e83
Show file tree
Hide file tree
Showing 3 changed files with 180 additions and 78 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
},
"dependencies": {
"@netlify/functions": "^2.8.2",
"@sentry/serverless": "^7.38.0",
"@sentry/serverless": "^7.114.0",
"@sentry/vite-plugin": "^2.22.6",
"common-tags": "^1.8.2",
"dayjs": "^1.11.13",
"escape-html": "^1.0.3",
Expand Down
11 changes: 10 additions & 1 deletion web/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import dns from 'dns'

import { sentryVitePlugin } from '@sentry/vite-plugin'
import { defineConfig, UserConfig } from 'vite'

import redwood from '@redwoodjs/vite'
Expand All @@ -13,7 +14,15 @@ dns.setDefaultResultOrder('verbatim')
* @type {import('vite').UserConfig}
*/
const viteConfig: UserConfig = {
plugins: [redwood()],
build: { sourcemap: true },
plugins: [
redwood(),
sentryVitePlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: 'kesdev',
project: 'freevite',
}),
],
}

export default defineConfig(viteConfig)
Loading

0 comments on commit d303e83

Please sign in to comment.