mirror of
https://github.com/supabase/supabase.git
synced 2026-06-21 18:23:01 +08:00
* 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
16 lines
560 B
TypeScript
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',
|
|
],
|
|
})
|