Files
supabase/apps/studio/sentry.server.config.ts
Kamil Ogórek 8e2dd4cdfc Cleanup sentry filters (#20127)
* ref: Remove stale Sentry event filters

* ref: Enable non-error objects to be captured by Sentry

* ref: Capture Sentry events originating from our own code only
2024-01-04 11:09:43 +07:00

16 lines
560 B
TypeScript

import * as Sentry from '@sentry/nextjs'
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
tracesSampleRate: 0.01,
debug: false,
ignoreErrors: [
// Used exclusively in Monaco Editor.
'ResizeObserver',
// [Joshen] We currently use stripe-js for customers to save their credit card data
// I'm unable to reproduce this error on local, staging nor prod across chrome, safari or firefox
// Based on https://github.com/stripe/stripe-js/issues/26, it seems like this error is safe to ignore,
'Failed to load Stripe.js',
],
})