mirror of
https://github.com/supabase/supabase.git
synced 2026-05-07 01:10:15 -04:00
db8b88a890
* add ts any checks * fix linting issues * updated more file rules * updated runtime files * updated turbo to remove lints * removed eslint and reference from next * Revert the pnpm lock to the one from master. --------- Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
16 lines
440 B
TypeScript
16 lines
440 B
TypeScript
import * as Sentry from '@sentry/nextjs'
|
|
|
|
export async function register() {
|
|
// eslint-disable-next-line turbo/no-undeclared-env-vars
|
|
if (process.env.NEXT_RUNTIME === 'nodejs') {
|
|
await import('./sentry.server.config')
|
|
}
|
|
|
|
// eslint-disable-next-line turbo/no-undeclared-env-vars
|
|
if (process.env.NEXT_RUNTIME === 'edge') {
|
|
await import('./sentry.edge.config')
|
|
}
|
|
}
|
|
|
|
export const onRequestError = Sentry.captureRequestError
|