Skip to content

Commit

Permalink
refactor: switched to sentry nuxt module (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-clegg authored Oct 22, 2024
1 parent d04c46d commit 56b4d79
Show file tree
Hide file tree
Showing 9 changed files with 896 additions and 895 deletions.
2 changes: 2 additions & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ COPY ./src ./src
COPY ./nuxt.config.ts ./
COPY ./tailwind.config.ts ./
COPY ./tsconfig.json ./
COPY ./sentry.client.config.ts ./
COPY ./sentry.server.config.ts ./

RUN pnpm build

Expand Down
37 changes: 23 additions & 14 deletions frontend/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ export default defineNuxtConfig({
"nuxt-umami"
],

routeRules: {
"/**": {
headers: {
"Document-Policy": "js-profiling"
}
}
},

modules: [
"nuxt-directus",
"nuxt-headlessui",
Expand All @@ -85,7 +93,8 @@ export default defineNuxtConfig({
"@nuxtjs/device",
"@nuxt/image",
"@nuxt/test-utils/module",
"@nuxt/ui"
"@nuxt/ui",
"@sentry/nuxt/module"
],

image: {
Expand Down Expand Up @@ -164,19 +173,19 @@ export default defineNuxtConfig({
build: {
sourcemap: true
},
plugins: [
sentryVitePlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
telemetry: false,
disable: process.env.NODE_ENV !== "production",
release: {
name: process.env.SENTRY_RELEASE
},
debug: true
})
],
// plugins: [
// sentryVitePlugin({
// authToken: process.env.SENTRY_AUTH_TOKEN,
// org: process.env.SENTRY_ORG,
// project: process.env.SENTRY_PROJECT,
// telemetry: false,
// disable: process.env.NODE_ENV !== "production",
// release: {
// name: process.env.SENTRY_RELEASE
// },
// debug: true
// })
// ],
server: {
watch: {
usePolling: true,
Expand Down
5 changes: 1 addition & 4 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
"@nuxtjs/device": "^3.2.4",
"@nuxtjs/eslint-config-typescript": "^12.1.0",
"@nuxtjs/turnstile": "^0.6.3",
"@sentry/node": "^7.119.0",
"@sentry/profiling-node": "^1.3.5",
"@sentry/vite-plugin": "^2.22.4",
"@sentry/vue": "^7.119.0",
"@tailwindcss/forms": "^0.5.9",
"@types/node": "^20.16.9",
"@vue/test-utils": "^2.4.6",
Expand All @@ -46,6 +42,7 @@
"@directus/sdk": "^10.3.5",
"@heroicons/vue": "^2.1.5",
"@pinia/nuxt": "^0.5.4",
"@sentry/nuxt": "^8.35.0",
"@vuelidate/core": "^2.0.3",
"@vuelidate/validators": "^2.0.4",
"@vuepic/vue-datepicker": "^6.1.0",
Expand Down
Loading

0 comments on commit 56b4d79

Please sign in to comment.