Spaces:
Running
Running
Download bioai-platform/frontend/sentry.client.config.ts from Samad14/bio-nexus-api: direct link, hf CLI and curl.
- Browser
- Download file 424 Bytes
-
https://huggingface.co/spaces/Samad14/bio-nexus-api/resolve/main/bioai-platform/frontend/sentry.client.config.ts
- Command line
-
hf download hf://spaces/Samad14/bio-nexus-api/bioai-platform/frontend/sentry.client.config.ts
-
curl -L -o sentry.client.config.ts https://huggingface.co/spaces/Samad14/bio-nexus-api/resolve/main/bioai-platform/frontend/sentry.client.config.ts
424 Bytes
| import * as Sentry from '@sentry/nextjs'; | |
| Sentry.init({ | |
| dsn: process.env.NEXT_PUBLIC_SENTRY_DSN || '', | |
| environment: process.env.NEXT_PUBLIC_VERCEL_ENV || 'development', | |
| tracesSampleRate: 0.1, | |
| integrations: [Sentry.browserTracingIntegration()], | |
| beforeSend(event) { | |
| if (event.exception) { | |
| console.error('[Sentry] Captured exception:', event.exception.values?.[0]?.value); | |
| } | |
| return event; | |
| }, | |
| }); | |