generateMetadata() — supabase Function Reference
Architecture documentation for the generateMetadata() function in page.tsx from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 47cbf4ff_dd4f_a114_d51d_af5b65f2b587["generateMetadata()"] f9834302_2180_4104_1393_1976e73da5ec["getDocFromParams()"] 47cbf4ff_dd4f_a114_d51d_af5b65f2b587 -->|calls| f9834302_2180_4104_1393_1976e73da5ec 0fad620a_816c_db65_01a8_6745b6600e3b["absoluteUrl()"] 47cbf4ff_dd4f_a114_d51d_af5b65f2b587 -->|calls| 0fad620a_816c_db65_01a8_6745b6600e3b style 47cbf4ff_dd4f_a114_d51d_af5b65f2b587 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/learn/app/(app)/[...slug]/page.tsx lines 38–62
export async function generateMetadata(props: DocPageProps): Promise<Metadata> {
const params = await props.params
const doc = await getDocFromParams({ params })
// get page params so we can check if it's the introduction page
const slugSegments = doc?.slugAsParams.split('/')
const isIntroductionPage = slugSegments?.[slugSegments.length - 1] === 'introduction'
if (!doc) {
return {}
}
const metadata: Metadata = {
...mainMetadata,
title: doc.title,
description: doc.description,
openGraph: {
...(mainMetadata.openGraph || {}),
title: doc.title,
description: doc.description,
type: 'article',
url: absoluteUrl(doc.slug),
},
}
return metadata
}
Domain
Subdomains
Source
Frequently Asked Questions
What does generateMetadata() do?
generateMetadata() is a function in the supabase codebase.
What does generateMetadata() call?
generateMetadata() calls 2 function(s): absoluteUrl, getDocFromParams.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free