mirror of
https://github.com/d0zingcat/BroadcastChannel.git
synced 2026-05-13 23:16:46 +00:00
feat: remove Sentry integration if DSN is missing
Enhance configuration robustness by disabling Sentry integration when DSN is not provided, preventing potential runtime errors.
This commit is contained in:
@@ -17,7 +17,5 @@ HEADER_INJECT=HEADER_INJECT
|
||||
NO_FOLLOW=false
|
||||
NO_INDEX=false
|
||||
|
||||
SENTRY_DSN=
|
||||
|
||||
TELEGRAM_HOST=telegram.dog
|
||||
STATIC_PROXY=""
|
||||
|
||||
@@ -29,7 +29,7 @@ export default defineConfig({
|
||||
output: 'hybrid',
|
||||
adapter: providers[adapterProvider] || providers.node,
|
||||
integrations: [
|
||||
...(process.env.SENTRY_DSN || process.env.SENTRY_AUTH_TOKEN
|
||||
...(process.env.SENTRY_DSN
|
||||
? [
|
||||
sentry({
|
||||
enabled: {
|
||||
|
||||
Reference in New Issue
Block a user