@nitra/vite-boot 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/sentry.js +11 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/vite-boot",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Vite boot",
5
5
  "type": "module",
6
6
  "exports": {
package/src/sentry.js CHANGED
@@ -5,10 +5,11 @@ import { Integrations } from '@sentry/tracing'
5
5
  * Ініціалізація Sentry
6
6
  */
7
7
  export const bootSentry = (app, router) => {
8
- Sentry.init({
8
+ const options = {
9
9
  app,
10
10
  dsn: __SENTRY_DSN__,
11
11
  release: __GITHUB_SHA__,
12
+ ignoreErrors: ['ResizeObserver loop limit exceeded'],
12
13
  integrations: [
13
14
  new Integrations.BrowserTracing({
14
15
  routingInstrumentation: Sentry.vueRouterInstrumentation(router)
@@ -18,5 +19,13 @@ export const bootSentry = (app, router) => {
18
19
  // of transactions for performance monitoring.
19
20
  // We recommend adjusting this value in production
20
21
  tracesSampleRate: 0.1
21
- })
22
+ }
23
+
24
+ // Якщо публікація з різних гілок
25
+ // записуємо в різні енв для фільтрації в сентрі
26
+ if (__BRANCH__) {
27
+ options.environment = __BRANCH__
28
+ }
29
+
30
+ Sentry.init(options)
22
31
  }