The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
import { SupportFormUrlKeys } from '@/components/interfaces/Support/SupportForm.utils'
export function getSupportLinkQueryParams(
project: { parent_project_ref?: string } | undefined,
org: { slug?: string } | undefined,
routerRef: string | undefined
): Partial<SupportFormUrlKeys> | undefined {
const projectRef = project?.parent_project_ref ?? routerRef
if (projectRef) return { projectRef }
if (org?.slug) return { orgSlug: org.slug }
return undefined
}