Skip to content

Commit

Permalink
refactor: revert sentry (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-clegg authored Oct 23, 2024
1 parent 125fb70 commit bbc0a65
Show file tree
Hide file tree
Showing 8 changed files with 894 additions and 894 deletions.
4 changes: 1 addition & 3 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:20-bullseye-slim AS prebase

RUN apt-get update && apt-get install -y --no-install-recommends netcat wget ca-certificates \
RUN apt-get update && apt-get install -y --no-install-recommends netcat wget \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

Expand Down Expand Up @@ -72,8 +72,6 @@ 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
46 changes: 15 additions & 31 deletions frontend/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,6 @@ export default defineNuxtConfig({
"nuxt-umami"
],

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

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

image: {
Expand Down Expand Up @@ -136,12 +127,6 @@ export default defineNuxtConfig({
},

nitro: {
rollupConfig: {
output: {
sourcemap: "hidden"
}
},

publicAssets: process.env.NODE_ENV === "production"
? [
{
Expand Down Expand Up @@ -177,22 +162,21 @@ export default defineNuxtConfig({
]
},
build: {
sourcemap: true,
transpile: [ "import-in-the-middle"]
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: 4 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
"@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 @@ -42,7 +46,6 @@
"@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 bbc0a65

Please sign in to comment.