How to call a local Webhook URL in a Supabase function?

I want to make an API call inside a Supabase function like so:
select status, content::jsonb
  into http_status, http_content
  from http_post(
    'http://host.docker.internal:3000/api/my-webhook',
    json_build_object(
      'email', user_email,
      'organization_id', new.organization_id
    )::text,
    'application/json'::text
  );


http://host.docker.internal:3000/api/my-webhook is my local Nuxt 3 environment.

But for some reason I'm getting "Failed to connect to host.docker.internal port 3000"

Am I doing something wrong here or I do need ngrok in this case?

Thank you!
Was this page helpful?