The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Revert changes for SupportForm for Sb-2.0
Joshen Lim3eaa6386acd2
diff --git a/studio/components/interfaces/Support/SupportForm.utils.ts b/studio/components/interfaces/Support/SupportForm.utils.tsindex 6202a9855f5..252d106155e 100644--- a/studio/components/interfaces/Support/SupportForm.utils.ts+++ b/studio/components/interfaces/Support/SupportForm.utils.ts@@ -8,10 +8,10 @@ const supportSupabaseClient = createClient(SUPPORT_API_URL, SUPPORT_API_KEY, {auth: {persistSession: false,autoRefreshToken: false,- // @ts-ignoremultiTab: false,detectSessionInUrl: false,localStorage: {+ // @ts-ignoregetItem: (key: string) => undefined,setItem: (key: string, value: string) => {},removeItem: (key: string) => {},@@ -45,7 +45,10 @@ export const uploadAttachments = async (ref: string, files: File[]) => {return data}))- const keys = compact(uploadedFiles).map((file) => file.path)++ // [Joshen] To revert once we go back to sb 2.0+ // const keys = compact(uploadedFiles).map((file) => file.path)+ const keys = compact(uploadedFiles).map((file) => file.Key.split('/').slice(1).join('/'))const { data, error } = await supportSupabaseClient.storage.from('support-attachments')@@ -53,7 +56,8 @@ export const uploadAttachments = async (ref: string, files: File[]) => {if (error) {console.error('Failed to retrieve URLs for attachments', error)}- return data ? data.map((file) => file.signedUrl) : []+ // [Joshen] Change to signedUrl after going back to sb 2.0+ return data ? data.map((file) => file.signedURL) : []}export const formatMessage = (message: string, attachments: string[]) => {