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

@@ -0,0 +1,11 @@
import { sentryCloudflareNitroPlugin } from '@sentry/nuxt/module/plugins'
declare const __SENTRY_RELEASE__: string
export default defineNitroPlugin(
sentryCloudflareNitroPlugin({
dsn: 'https://9cf8f56ab7055ab6b1042fad535f2a44@o485889.ingest.us.sentry.io/4510709722185728',
tracesSampleRate: 1.0,
release: __SENTRY_RELEASE__,
}),
)