@nitra/vite-boot 1.0.17 → 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.17",
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/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: [