Home / Function/ getComponentPath() — supabase Function Reference

getComponentPath() — supabase Function Reference

Architecture documentation for the getComponentPath() function in command.tsx from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  7a50c4e2_db65_859f_25f6_42e059e4aad1["getComponentPath()"]
  6dab894a_a956_6f28_44d9_6d3388713095["Command()"]
  6dab894a_a956_6f28_44d9_6d3388713095 -->|calls| 7a50c4e2_db65_859f_25f6_42e059e4aad1
  style 7a50c4e2_db65_859f_25f6_42e059e4aad1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/learn/components/command.tsx lines 30–36

const getComponentPath = (name: string) => {
  if (process.env.NEXT_PUBLIC_VERCEL_TARGET_ENV === 'production') {
    return `/${name}`
  } else {
    return `${process.env.NEXT_PUBLIC_BASE_PATH ?? ''}/r/${name}.json`
  }
}

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free