The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: function slug
Inian1bd764fdd12a
diff --git a/studio/components/interfaces/Functions/FunctionsListItem.tsx b/studio/components/interfaces/Functions/FunctionsListItem.tsxindex 06055394bcf..10c5be56f03 100644--- a/studio/components/interfaces/Functions/FunctionsListItem.tsx+++ b/studio/components/interfaces/Functions/FunctionsListItem.tsx@@ -39,7 +39,7 @@ const FunctionsListItem: FC<Props> = ({ function: item }) => {HTTP Request</span> */}<div className="text-xs text-scale-900 flex gap-2 items-center truncate">- <span className="font-mono truncate hidden md:inline">{`https://${ref}.supabase.com/functions/${item.name}`}</span>+ <span className="font-mono truncate hidden md:inline">{`https://${ref}.supabase.com/functions/${item.slug}`}</span><span className="font-mono truncate md:hidden">{`/${item.name}`}</span></div></Table.td>diff --git a/studio/pages/project/[ref]/functions/[id]/details.tsx b/studio/pages/project/[ref]/functions/[id]/details.tsxindex 9516e08811a..41efe30463d 100644--- a/studio/pages/project/[ref]/functions/[id]/details.tsx+++ b/studio/pages/project/[ref]/functions/[id]/details.tsx@@ -106,15 +106,16 @@ const PageLayout: NextPageWithLayout = () => {const invokeCommands: any = [{- command: `curl -L -X POST 'https://${ref}.functions.supabase.co/hello' -H 'Authorization: Bearer ${- anonKey ?? '[YOUR ANON KEY]'- }'`,+ command: `curl -L -X POST 'https://${ref}.functions.supabase.co/${+ selectedFunction?.slug+ }' -H 'Authorization: Bearer ${anonKey ?? '[YOUR ANON KEY]'}'`,description: 'Invokes the hello function',jsx: () => {return (<><span className="text-brand-1100">curl</span> -L -X POST 'https://{ref}- .functions.supabase.co/hello' -H 'Authorization: Bearer [YOUR ANON KEY]'+ .functions.supabase.co/{selectedFunction?.slug}' -H 'Authorization: Bearer [YOUR ANON+ KEY]'</>)},