@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/vite-boot",
3
- "version": "1.0.15",
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
@@ -20,7 +20,7 @@ const wsClient = createClient({
20
20
  return {
21
21
  headers: {
22
22
  Authorization: `Bearer ${token}`,
23
- 'x-hasura-role': __HASURA_ROLE__
23
+ 'x-hasura-role': import.meta.env.VITE_HASURA_ROLE
24
24
  }
25
25
  }
26
26
  }
package/src/i18n.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { createI18n } from 'petite-vue-i18n'
2
2
  import { persistStore } from 'src/stores/persist.js'
3
+ import { createLogger } from '@nitra/consola'
3
4
 
4
5
  const consola = createLogger(import.meta.url)
5
6
 
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: __SENTRY_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