[FE-2328] feat(studio): add sentry environment environment variable (#41769)

feat(studio): add sentry environment environment variable
This commit is contained in:
Alaister Young authored and GitHub committed 2026-01-08 16:31:01 +08:00
1 parent 5bef19528b
commit 0ebef190fc
3 files changed
+9

No files matched your search

+3
View File
@@ -52,6 +52,9 @@ function isThirdPartyError(frames: Sentry.StackFrame[] | undefined) {
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
...(process.env.NEXT_PUBLIC_SENTRY_ENVIRONMENT && {
environment: process.env.NEXT_PUBLIC_SENTRY_ENVIRONMENT,
}),
// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
// [Ali] Filter out browser extensions and user scripts (FE-2094)
+3
View File
@@ -7,6 +7,9 @@ import * as Sentry from '@sentry/nextjs'
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
...(process.env.NEXT_PUBLIC_SENTRY_ENVIRONMENT && {
environment: process.env.NEXT_PUBLIC_SENTRY_ENVIRONMENT,
}),
// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
})
+3
View File
@@ -6,6 +6,9 @@ import * as Sentry from '@sentry/nextjs'
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
...(process.env.NEXT_PUBLIC_SENTRY_ENVIRONMENT && {
environment: process.env.NEXT_PUBLIC_SENTRY_ENVIRONMENT,
}),
// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
ignoreErrors: [