Home / Function/ buildFunctionUrl() — supabase Function Reference

buildFunctionUrl() — supabase Function Reference

Architecture documentation for the buildFunctionUrl() function in EdgeFunctionSection.tsx from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  22ce56d0_5566_38e8_064d_1f9e075dd61d["buildFunctionUrl()"]
  322e5a62_245e_3de8_d99d_d83e74aed7e4["EdgeFunctionSection()"]
  322e5a62_245e_3de8_d99d_d83e74aed7e4 -->|calls| 22ce56d0_5566_38e8_064d_1f9e075dd61d
  style 22ce56d0_5566_38e8_064d_1f9e075dd61d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/Integrations/CronJobs/EdgeFunctionSection.tsx lines 30–34

const buildFunctionUrl = (slug: string, projectRef: string, restUrl?: string) => {
  const restUrlTld = restUrl ? new URL(restUrl).hostname.split('.').pop() : 'co'
  const functionUrl = `https://${projectRef}.supabase.${restUrlTld}/functions/v1/${slug}`
  return functionUrl
}

Subdomains

Frequently Asked Questions

What does buildFunctionUrl() do?
buildFunctionUrl() is a function in the supabase codebase.
What calls buildFunctionUrl()?
buildFunctionUrl() is called by 1 function(s): EdgeFunctionSection.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free