The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: Support form - Always capture a Sentry exception when support form request fails (#36557)
Carel de Waal4824114b842b
diff --git a/apps/studio/data/feedback/support-ticket-send.ts b/apps/studio/data/feedback/support-ticket-send.tsindex 45ed494472e..137215c244f 100644--- a/apps/studio/data/feedback/support-ticket-send.ts+++ b/apps/studio/data/feedback/support-ticket-send.ts@@ -52,7 +52,7 @@ export async function sendSupportTicket({},})- if (error) handleError(error)+ if (error) handleError(error, { alwaysCapture: true })return data}diff --git a/apps/studio/data/fetchers.ts b/apps/studio/data/fetchers.tsindex d3849c3e83e..9c369ee5504 100644--- a/apps/studio/data/fetchers.ts+++ b/apps/studio/data/fetchers.ts@@ -128,8 +128,18 @@ export const {OPTIONS: options,} = client-export const handleError = (error: unknown): never => {+type HandleErrorOptions = {+ alwaysCapture?: boolean+}++export const handleError = (+ error: unknown,+ options: HandleErrorOptions = { alwaysCapture: false }+): never => {if (error && typeof error === 'object') {+ if (options.alwaysCapture) {+ Sentry.captureException(error)+ }const errorMessage ='msg' in error && typeof error.msg === 'string'? error.msg