Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Update img url with base path in hooks.constants

Joshen Lim92133aee7aa7
diff --git a/studio/components/interfaces/Database/Hooks/Hooks.constants.ts b/studio/components/interfaces/Database/Hooks/Hooks.constants.ts
index 94b308240e5..5e7287a0874 100644
--- a/studio/components/interfaces/Database/Hooks/Hooks.constants.ts
+++ b/studio/components/interfaces/Database/Hooks/Hooks.constants.ts
@@ -1,3 +1,5 @@
+import { BASE_PATH } from 'lib/constants'
+
export const ENABLED_MODE_OPTIONS = [
{ label: 'Origin', value: 'ORIGIN', description: 'This is the default behaviour' },
{
@@ -35,14 +37,14 @@ export const AVAILABLE_WEBHOOK_TYPES = [
{
disabled: false,
value: 'http_request',
- icon: '/img/function-providers/http-request.png',
+ icon: `${BASE_PATH}/img/function-providers/http-request.png`,
label: 'HTTP Request',
description: 'Send an HTTP request to any URL.',
},
{
disabled: true,
value: 'supabase_function',
- icon: '/img/function-providers/supabase-severless-function.png',
+ icon: `${BASE_PATH}/img/function-providers/supabase-severless-function.png`,
label: 'Supabase Edge Functions',
description: 'Choose a Supabase edge function to run.',
},