mirror of
https://github.com/d0zingcat/BroadcastChannel.git
synced 2026-05-13 23:16:46 +00:00
chore: conditionally enable Sentry integration based on environment variable
Conditionally enables Sentry integration only if the SENTRY_DSN environment variable is set, improving build efficiency and reducing unnecessary dependencies.
This commit is contained in:
@@ -29,7 +29,7 @@ export default defineConfig({
|
||||
output: 'hybrid',
|
||||
adapter: providers[adapterProvider] || providers.node,
|
||||
integrations: [
|
||||
...process.env.SENTRY_DSN
|
||||
...(process.env.SENTRY_DSN
|
||||
? [
|
||||
sentry({
|
||||
enabled: {
|
||||
@@ -44,7 +44,7 @@ export default defineConfig({
|
||||
},
|
||||
}),
|
||||
]
|
||||
: [],
|
||||
: []),
|
||||
],
|
||||
vite: {
|
||||
ssr: {
|
||||
|
||||
Reference in New Issue
Block a user