deploy: add sentry to frontend server (#5118)

* deploy: add sentry to frontend server

* build: add sentry auth token to env

* fix: use sentry CLI for sourcemap upload instead

* feat: comment deploy

---------

Co-authored-by: Calum H. (IMB11) <contact@cal.engineer>
This commit is contained in:
Michael H.
2026-01-14 18:46:55 +01:00
committed by GitHub
parent f85a2d3ec1
commit 716c4e9a21
6 changed files with 1062 additions and 11 deletions

View File

@@ -222,7 +222,7 @@ export default defineNuxtConfig({
},
},
},
modules: ['@nuxtjs/i18n', '@pinia/nuxt', 'floating-vue/nuxt'],
modules: ['@nuxtjs/i18n', '@pinia/nuxt', 'floating-vue/nuxt', '@sentry/nuxt/module'],
floatingVue: {
themes: {
'ribbit-popout': {
@@ -266,6 +266,9 @@ export default defineNuxtConfig({
cloudflare: {
nodeCompat: true,
},
replace: {
__SENTRY_RELEASE__: JSON.stringify(process.env.CF_PAGES_COMMIT_SHA || 'unknown'),
},
},
devtools: {
enabled: true,
@@ -313,6 +316,12 @@ export default defineNuxtConfig({
experimental: {
asyncContext: isProduction(),
},
sourcemap: { client: 'hidden' },
sentry: {
sourcemaps: {
disable: true,
},
},
})
function getApiUrl() {