Skip to content

Commit

Permalink
chore: re-enable sentry #174
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab committed Feb 26, 2024
1 parent 205220a commit e1e5188
Show file tree
Hide file tree
Showing 6 changed files with 196 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
CONFIG=vidos-config.json
SENTRY_DSN=
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ services:
- ./vidos-config.json:/usr/src/app/vidos-config.json
environment:
- CONFIG=/usr/src/app/vidos-config.json
- SENTRY_DSN=
8 changes: 8 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export default defineNuxtConfig({
'@nuxtjs/i18n',
'@nuxt/image-edge',
'@pinia/nuxt',
...(process.env.SENTRY_DSN ? ['@nuxtjs/sentry'] : []),
async (_options, nuxt) => {
nuxt.hooks.hook('vite:extendConfig', config =>
// @ts-expect-error: Do we really need to extend the config ?
Expand Down Expand Up @@ -98,6 +99,13 @@ export default defineNuxtConfig({
purgeCSS: {
whitelistPatterns: [/svg.*/, /fa.*/],
},
sentry: {
dsn: process.env.SENTRY_DSN || '',
// https://sentry.nuxtjs.org/sentry/options
config: {
// https://docs.sentry.io/platforms/javascript/guides/vue/configuration/options/
},
},
server: {
host: '0.0.0.0',
},
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"dependencies": {
"@fortawesome/vue-fontawesome": "^3.0.3",
"@gtm-support/vue-gtm": "^2.0.0",
"@nuxtjs/sentry": "^7.3.0",
"@pinia/nuxt": "0.4.11",
"@tailwindcss/typography": "^0.5.9",
"@teritorio/map": "^0.12.7",
Expand Down
1 change: 1 addition & 0 deletions vidos-config-empty.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"cdt40.tourinsoft.com"
],
"MAPILLARY_ACCESS_TOKEN": "MLY|5609419529131330|36d86a5578fecba521c1ffe033bda2fc",
"SENTRY_DSN": null,
"COOKIES_CONSENT": null,
"COOKIES_LINK": null,
"GOOGLE_SITE_VERIFICATION": null,
Expand Down
184 changes: 184 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2615,6 +2615,25 @@ __metadata:
languageName: node
linkType: hard

"@nuxtjs/sentry@npm:^7.3.0":
version: 7.5.0
resolution: "@nuxtjs/sentry@npm:7.5.0"
dependencies:
"@sentry/core": ^7.63.0
"@sentry/integrations": ^7.63.0
"@sentry/node": ^7.63.0
"@sentry/utils": ^7.63.0
"@sentry/vue": ^7.63.0
consola: ^3.2.3
defu: ^6.1.2
hash-sum: ^2.0.0
lodash.mergewith: ^4.6.2
mlly: ^1.4.0
pathe: ^1.1.1
checksum: 2da7d9a5ca3561781433879a3d65889f7466dbea39265b329ce7d9e34072a943a61385f77dc689a7d8cef9b594ba6e05ae593e3c27a77469441050226a728933
languageName: node
linkType: hard

"@open-draft/until@npm:^1.0.3":
version: 1.0.3
resolution: "@open-draft/until@npm:1.0.3"
Expand Down Expand Up @@ -2851,6 +2870,131 @@ __metadata:
languageName: node
linkType: hard

"@sentry-internal/feedback@npm:7.102.1":
version: 7.102.1
resolution: "@sentry-internal/feedback@npm:7.102.1"
dependencies:
"@sentry/core": 7.102.1
"@sentry/types": 7.102.1
"@sentry/utils": 7.102.1
checksum: 7642fc3e5012012055cca411ffef25f89c74e7701e9cc5ba3e6b2c4f800e8c94f6b1de962f8509f14bf8fafb9517d697f0463a54b1686aa45b2b77e563ff90c6
languageName: node
linkType: hard

"@sentry-internal/replay-canvas@npm:7.102.1":
version: 7.102.1
resolution: "@sentry-internal/replay-canvas@npm:7.102.1"
dependencies:
"@sentry/core": 7.102.1
"@sentry/replay": 7.102.1
"@sentry/types": 7.102.1
"@sentry/utils": 7.102.1
checksum: 77b420dcfd6064cfce46944ca1497048427df0a82780488b82316303ae2c45857cf9fb5a25adce32569859ef3ac1266e2ef18ff91a36aad25ff875666f77185a
languageName: node
linkType: hard

"@sentry-internal/tracing@npm:7.102.1":
version: 7.102.1
resolution: "@sentry-internal/tracing@npm:7.102.1"
dependencies:
"@sentry/core": 7.102.1
"@sentry/types": 7.102.1
"@sentry/utils": 7.102.1
checksum: 52c1307bf4db373b32c9993a181f2e5d8c543e927681bdf12e083b4fe2a03e467517342e6a07e1cd4390d415fb1f97321f4d111218acf0e85818ad7c0c69fc15
languageName: node
linkType: hard

"@sentry/browser@npm:7.102.1":
version: 7.102.1
resolution: "@sentry/browser@npm:7.102.1"
dependencies:
"@sentry-internal/feedback": 7.102.1
"@sentry-internal/replay-canvas": 7.102.1
"@sentry-internal/tracing": 7.102.1
"@sentry/core": 7.102.1
"@sentry/replay": 7.102.1
"@sentry/types": 7.102.1
"@sentry/utils": 7.102.1
checksum: 14ec1460082a74ac07bd2bc799e5108acae1d4ccd71476600a395b106b820baa2522207bdf4421234a03777ff347f92be6abf7cf9878e5763f186a3eb84c16ff
languageName: node
linkType: hard

"@sentry/core@npm:7.102.1, @sentry/core@npm:^7.63.0":
version: 7.102.1
resolution: "@sentry/core@npm:7.102.1"
dependencies:
"@sentry/types": 7.102.1
"@sentry/utils": 7.102.1
checksum: 6e9550933e84de9eb4ca0fd29eeb70528894857f2cd21eaddb7d394a4a8487e30257edba4de9742cb1016bc0a88202ed5964043891de9b389025f3d6d5eaff15
languageName: node
linkType: hard

"@sentry/integrations@npm:^7.63.0":
version: 7.102.1
resolution: "@sentry/integrations@npm:7.102.1"
dependencies:
"@sentry/core": 7.102.1
"@sentry/types": 7.102.1
"@sentry/utils": 7.102.1
localforage: ^1.8.1
checksum: 791e18bf7d881849b31f4f14bcb83db2ad4cc2b7606d56641d04599d052006908ae98a3b9c12bcf62d1be0313fbc3fa3bf06f80f3c83b089959d156e64e136db
languageName: node
linkType: hard

"@sentry/node@npm:^7.63.0":
version: 7.102.1
resolution: "@sentry/node@npm:7.102.1"
dependencies:
"@sentry-internal/tracing": 7.102.1
"@sentry/core": 7.102.1
"@sentry/types": 7.102.1
"@sentry/utils": 7.102.1
checksum: 15090de94db0d4e79cc15ed513fd7e472ccd194e2a017383f73e5e0c232015692529ca9ca5dcacca1ee4763baed5ce65bccbc8b8ebeec2a4688d9ac6c15dfe57
languageName: node
linkType: hard

"@sentry/replay@npm:7.102.1":
version: 7.102.1
resolution: "@sentry/replay@npm:7.102.1"
dependencies:
"@sentry-internal/tracing": 7.102.1
"@sentry/core": 7.102.1
"@sentry/types": 7.102.1
"@sentry/utils": 7.102.1
checksum: 1dab12ca539f7b5ccd929d44d83f30c5ff4eaecaa7786ef7a076b5e2d7f159e9de7a58506c25aec30a582a3e87f3726624a195aa787fedde0d7d3173413d3aaa
languageName: node
linkType: hard

"@sentry/types@npm:7.102.1":
version: 7.102.1
resolution: "@sentry/types@npm:7.102.1"
checksum: 1ab011a9924e5a53afe0a8819bb20059d4a5fa58b6f702f223122e173430c7d7e58258b81a2192d0e356196b1e6e35162ba02251945af9aef1f89db2e47f836d
languageName: node
linkType: hard

"@sentry/utils@npm:7.102.1, @sentry/utils@npm:^7.63.0":
version: 7.102.1
resolution: "@sentry/utils@npm:7.102.1"
dependencies:
"@sentry/types": 7.102.1
checksum: 42fa92e897fd69606fceb830e051f47cc71af204f9ea2001732507b35843b1533d41f22f1892973721266ec714a158cdd89981f28a6544f3f7b452e81d7b128d
languageName: node
linkType: hard

"@sentry/vue@npm:^7.63.0":
version: 7.102.1
resolution: "@sentry/vue@npm:7.102.1"
dependencies:
"@sentry/browser": 7.102.1
"@sentry/core": 7.102.1
"@sentry/types": 7.102.1
"@sentry/utils": 7.102.1
peerDependencies:
vue: 2.x || 3.x
checksum: f4f241cf55401b4e8faab9d0f61c7fb2602a147ef7f1ff3fb37486ab143e439261c0cfeb185a2e492470517305bb3d07cfb2a744361dd335d572932330252bfe
languageName: node
linkType: hard

"@sidvind/better-ajv-errors@npm:^2.0.0":
version: 2.1.0
resolution: "@sidvind/better-ajv-errors@npm:2.1.0"
Expand Down Expand Up @@ -2994,6 +3138,7 @@ __metadata:
"@nuxt/image-edge": 1.0.0-rc.1-28119537.bfe30ab
"@nuxt/types": ^2.17.0
"@nuxtjs/i18n": ^8.0.0-beta.12
"@nuxtjs/sentry": ^7.3.0
"@pinia/nuxt": 0.4.11
"@tailwindcss/forms": ^0.5.3
"@tailwindcss/typography": ^0.5.9
Expand Down Expand Up @@ -5645,6 +5790,13 @@ __metadata:
languageName: node
linkType: hard

"consola@npm:^3.2.3":
version: 3.2.3
resolution: "consola@npm:3.2.3"
checksum: e5156eaa448b925e0e7548edf7f8698281081972ec8f62bb0ce5208c5717f2b93d2121f46a041f0817f569d412027b7e19c310cd152f4bc91d2c690da9f3a015
languageName: node
linkType: hard

"console-control-strings@npm:^1.0.0, console-control-strings@npm:^1.1.0":
version: 1.1.0
resolution: "console-control-strings@npm:1.1.0"
Expand Down Expand Up @@ -8911,6 +9063,13 @@ __metadata:
languageName: node
linkType: hard

"immediate@npm:~3.0.5":
version: 3.0.6
resolution: "immediate@npm:3.0.6"
checksum: e86d4d20e2da86f9a4629d9aee9d56dfae7d3a7ace7f569b0538f2ec2570d86b3cbdc52c546d23be2cfd28306670f44676fc833cd96d9506659b8c5ab8202ca4
languageName: node
linkType: hard

"immutable@npm:^4.0.0":
version: 4.2.4
resolution: "immutable@npm:4.2.4"
Expand Down Expand Up @@ -9954,6 +10113,15 @@ __metadata:
languageName: node
linkType: hard

"lie@npm:3.1.1":
version: 3.1.1
resolution: "lie@npm:3.1.1"
dependencies:
immediate: ~3.0.5
checksum: 33a07ffeb7eb5aaec59a5f7a72ba7e6a2ce9d011bd7894f36ed11e2da43f076467019e5f9826c5864500c6a792450aa54b263f31cef0a1774553851dce8a501c
languageName: node
linkType: hard

"lilconfig@npm:3.0.0":
version: 3.0.0
resolution: "lilconfig@npm:3.0.0"
Expand Down Expand Up @@ -10102,6 +10270,15 @@ __metadata:
languageName: node
linkType: hard

"localforage@npm:^1.8.1":
version: 1.10.0
resolution: "localforage@npm:1.10.0"
dependencies:
lie: 3.1.1
checksum: 92da7a53d8dabda65514f0b5bdf9e7ae98684180166386cfd2f1b0adc36fb459b8bbbc82e26d4faeaaff25d49970ac3155e15b16f930604bc31fc07ea29d27b6
languageName: node
linkType: hard

"locate-path@npm:^5.0.0":
version: 5.0.0
resolution: "locate-path@npm:5.0.0"
Expand Down Expand Up @@ -10197,6 +10374,13 @@ __metadata:
languageName: node
linkType: hard

"lodash.mergewith@npm:^4.6.2":
version: 4.6.2
resolution: "lodash.mergewith@npm:4.6.2"
checksum: 3561b63cebc629721ab4c016627fc54929ee33cdef1854b4a15ade71dd8eb5f2fc602830efe5395aed41c607d65e2cce356667116aa7156b82468594b42ab95f
languageName: node
linkType: hard

"lodash.once@npm:^4.1.1":
version: 4.1.1
resolution: "lodash.once@npm:4.1.1"
Expand Down

0 comments on commit e1e5188

Please sign in to comment.