@nitra/vite-boot 1.0.15 → 2.0.0
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.
- package/package.json +1 -3
- package/src/apollo.js +1 -1
- package/src/i18n.js +1 -0
- package/src/sentry.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nitra/vite-boot",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Vite boot",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -27,8 +27,6 @@
|
|
|
27
27
|
"@nitra/eslint-config/vue"
|
|
28
28
|
],
|
|
29
29
|
"globals": {
|
|
30
|
-
"__HASURA_ROLE__": "readonly",
|
|
31
|
-
"__SENTRY_DSN__": "readonly",
|
|
32
30
|
"__BRANCH__": "readonly",
|
|
33
31
|
"__GITHUB_SHA__": "readonly"
|
|
34
32
|
}
|
package/src/apollo.js
CHANGED
package/src/i18n.js
CHANGED
package/src/sentry.js
CHANGED
|
@@ -7,7 +7,7 @@ import { Integrations } from '@sentry/tracing'
|
|
|
7
7
|
export const bootSentry = (app, router) => {
|
|
8
8
|
const options = {
|
|
9
9
|
app,
|
|
10
|
-
dsn:
|
|
10
|
+
dsn: import.meta.env.VITE_SENTRY,
|
|
11
11
|
release: __GITHUB_SHA__,
|
|
12
12
|
ignoreErrors: ['ResizeObserver loop limit exceeded'],
|
|
13
13
|
integrations: [
|
|
@@ -23,7 +23,7 @@ export const bootSentry = (app, router) => {
|
|
|
23
23
|
|
|
24
24
|
// Якщо публікація з різних гілок
|
|
25
25
|
// записуємо в різні енв для фільтрації в сентрі
|
|
26
|
-
if (__BRANCH__) {
|
|
26
|
+
if (typeof __BRANCH__ !== 'undefined') {
|
|
27
27
|
options.environment = __BRANCH__
|
|
28
28
|
}
|
|
29
29
|
|