Home / Function/ getAiPromptImpl() — supabase Function Reference

getAiPromptImpl() — supabase Function Reference

Architecture documentation for the getAiPromptImpl() function in AiPrompts.utils.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  4011a8a8_98c5_15dd_836d_f64ee1d76018["getAiPromptImpl()"]
  e38a04b3_32ca_b573_96de_78cee3d3898c["parseMarkdown()"]
  4011a8a8_98c5_15dd_836d_f64ee1d76018 -->|calls| e38a04b3_32ca_b573_96de_78cee3d3898c
  style 4011a8a8_98c5_15dd_836d_f64ee1d76018 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/app/guides/getting-started/ai-prompts/[slug]/AiPrompts.utils.ts lines 83–92

async function getAiPromptImpl(prompt: string) {
  const filePath = join(PROMPTS_DIRECTORY, `${prompt}.md`)
  try {
    const rawContent = await readFile(filePath, 'utf-8')
    const { heading, content } = parseMarkdown(rawContent)
    return { heading, content }
  } catch (err) {
    console.error('Failed to fetch prompt from repo: %o', err)
  }
}

Subdomains

Frequently Asked Questions

What does getAiPromptImpl() do?
getAiPromptImpl() is a function in the supabase codebase.
What does getAiPromptImpl() call?
getAiPromptImpl() calls 1 function(s): parseMarkdown.

Analyze Your Own Codebase

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

Try Supermodel Free