@stoker-platform/web-app 0.5.83 → 0.5.84

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @stoker-platform/web-app
2
2
 
3
+ ## 0.5.84
4
+
5
+ ### Patch Changes
6
+
7
+ - feat: disable Sentry in dev mode
8
+
3
9
  ## 0.5.83
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/web-app",
3
- "version": "0.5.83",
3
+ "version": "0.5.84",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "scripts": {
package/src/main.tsx CHANGED
@@ -27,19 +27,21 @@ import { GlobalLoadingProvider, useGlobalLoading } from "./providers/LoadingProv
27
27
  import { useToast } from "./hooks/use-toast"
28
28
  import * as Sentry from "@sentry/react"
29
29
 
30
- Sentry.init({
31
- dsn: import.meta.env.STOKER_SENTRY_DSN,
32
- integrations: [
33
- Sentry.reactRouterV7BrowserTracingIntegration({
34
- useEffect,
35
- useLocation,
36
- useNavigationType,
37
- createRoutesFromChildren,
38
- matchRoutes,
39
- }),
40
- ],
41
- tracesSampleRate: 1.0,
42
- })
30
+ if (import.meta.env.STOKER_SENTRY_DSN) {
31
+ Sentry.init({
32
+ dsn: import.meta.env.STOKER_SENTRY_DSN,
33
+ integrations: [
34
+ Sentry.reactRouterV7BrowserTracingIntegration({
35
+ useEffect,
36
+ useLocation,
37
+ useNavigationType,
38
+ createRoutesFromChildren,
39
+ matchRoutes,
40
+ }),
41
+ ],
42
+ tracesSampleRate: 1.0,
43
+ })
44
+ }
43
45
 
44
46
  const sentryCreateBrowserRouter = Sentry.wrapCreateBrowserRouterV7(createBrowserRouter)
45
47