Home / Function/ generateMetadata() — supabase Function Reference

generateMetadata() — supabase Function Reference

Architecture documentation for the generateMetadata() function in page.tsx from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  d87ba874_ca6a_842f_7529_f71e9fbcdadd["generateMetadata()"]
  251ba9cf_d7d1_c258_e2c5_c15bf3695b3a["getAllTroubleshootingEntries()"]
  d87ba874_ca6a_842f_7529_f71e9fbcdadd -->|calls| 251ba9cf_d7d1_c258_e2c5_c15bf3695b3a
  style d87ba874_ca6a_842f_7529_f71e9fbcdadd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/app/guides/troubleshooting/[slug]/page.tsx lines 29–43

export const generateMetadata = async (props: { params: Promise<{ slug: string }> }) => {
  const params = await props.params

  const { slug } = params

  const allTroubleshootingEntries = await getAllTroubleshootingEntries()
  const entry = allTroubleshootingEntries.find((entry) => getArticleSlug(entry) === slug)

  return {
    title: `${metadataTitle || 'Supabase'} | Troubleshooting${entry ? ` | ${entry.data.title}` : ''}`,
    alternates: {
      canonical: `${PROD_URL}/guides/troubleshooting/${slug}`,
    },
  }
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free