The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix check before constructing new URL in TerminalInstructions (#33836)
Joshen Lim684a35cbd5b8
diff --git a/apps/studio/components/interfaces/Functions/TerminalInstructions.tsx b/apps/studio/components/interfaces/Functions/TerminalInstructions.tsxindex 6c49a15927b..f74e36bbbb8 100644--- a/apps/studio/components/interfaces/Functions/TerminalInstructions.tsx+++ b/apps/studio/components/interfaces/Functions/TerminalInstructions.tsx@@ -45,7 +45,7 @@ const TerminalInstructions = forwardRef<// get the .co or .net TLD from the restUrlconst restUrl = `https://${endpoint}`- const restUrlTld = restUrl ? new URL(restUrl).hostname.split('.').pop() : 'co'+ const restUrlTld = !!endpoint ? new URL(restUrl).hostname.split('.').pop() : 'co'const commands: Commands[] = [{