Skip to content

Commit 862e623

Browse files
committed
Init sentry/nuxt
1 parent c8445ea commit 862e623

6 files changed

Lines changed: 1183 additions & 518 deletions

File tree

app.vue

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup>
22
/** Vendor */
3-
import * as Sentry from "@sentry/vue"
3+
// import * as Sentry from "@sentry/vue"
44
55
/** Services */
66
import Socket from "@/services/api/socket"
@@ -135,21 +135,21 @@ onMounted(async () => {
135135
})
136136
}
137137
138-
if (window.location.hostname !== "localhost") {
139-
Sentry.init({
140-
dsn: "https://2801a6c0442d2b0cd4df995e4bbe45dc@newsentry.baking-bad.org/12",
141-
integrations: [
142-
Sentry.replayIntegration({
143-
maskAllText: false,
144-
blockAllMedia: false,
145-
}),
146-
],
147-
148-
// Session Replay
149-
replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.
150-
replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.
151-
})
152-
}
138+
// if (window.location.hostname !== "localhost") {
139+
// Sentry.init({
140+
// dsn: "https://2801a6c0442d2b0cd4df995e4bbe45dc@newsentry.baking-bad.org/12",
141+
// integrations: [
142+
// Sentry.replayIntegration({
143+
// maskAllText: false,
144+
// blockAllMedia: false,
145+
// }),
146+
// ],
147+
148+
// // Session Replay
149+
// replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.
150+
// replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.
151+
// })
152+
// }
153153
154154
window.onbeforeunload = function () {
155155
Socket.close()

nuxt.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import topLevelAwait from "vite-plugin-top-level-await"
55
import path from "path"
66

77
export default defineNuxtConfig({
8-
modules: ["nuxt-site-config", "@nuxtjs/robots", "@pinia/nuxt", "nuxt-og-image", "@nuxtjs/sitemap"],
8+
modules: ["nuxt-site-config", "@nuxtjs/robots", "@pinia/nuxt", "nuxt-og-image", "@nuxtjs/sitemap", "@sentry/nuxt/module"],
99

1010
site: {
1111
url: "https://celenium.io",
@@ -69,6 +69,10 @@ export default defineNuxtConfig({
6969
AMP: process.env.AMP,
7070
version: "1.20.0",
7171

72+
sentry: {
73+
dsn: process.env.SENTRY_DSN || "",
74+
},
75+
7276
API_MAINNET: "",
7377
API_MOCHA: "",
7478
API_ARABICA: "",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@keplr-wallet/cosmos": "^0.12.70",
3838
"@openzeppelin/merkle-tree": "^1.0.6",
3939
"@pinia/nuxt": "0.11.0",
40-
"@sentry/vue": "^8.50.0",
40+
"@sentry/nuxt": "^10.19.0",
4141
"@vueuse/core": "^10.9.0",
4242
"buffer": "^6.0.3",
4343
"codemirror": "^6.0.1",

0 commit comments

Comments
 (0)