The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Hide edge functions option in webhooks if not platform
Joshen Lim8934bcced1d1
diff --git a/studio/components/interfaces/Database/Hooks/Hooks.constants.ts b/studio/components/interfaces/Database/Hooks/Hooks.constants.tsindex 1fe98a85928..4470b0e1e40 100644--- a/studio/components/interfaces/Database/Hooks/Hooks.constants.ts+++ b/studio/components/interfaces/Database/Hooks/Hooks.constants.ts@@ -1,4 +1,4 @@-import { BASE_PATH } from 'lib/constants'+import { BASE_PATH, IS_PLATFORM } from 'lib/constants'export const ENABLED_MODE_OPTIONS = [{ label: 'Origin', value: 'ORIGIN', description: 'This is the default behaviour' },@@ -40,10 +40,14 @@ export const AVAILABLE_WEBHOOK_TYPES = [label: 'HTTP Request',description: 'Send an HTTP request to any URL.',},- {- value: 'supabase_function',- icon: `${BASE_PATH}/img/function-providers/supabase-severless-function.png`,- label: 'Supabase Edge Functions',- description: 'Choose a Supabase edge function to run.',- },+ ...(IS_PLATFORM+ ? [+ {+ value: 'supabase_function',+ icon: `${BASE_PATH}/img/function-providers/supabase-severless-function.png`,+ label: 'Supabase Edge Functions',+ description: 'Choose a Supabase edge function to run.',+ },+ ]+ : []),]