getContent() — supabase Function Reference
Architecture documentation for the getContent() function in page.tsx from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 5c8a5552_d99c_5b0d_2132_040301f438bf["getContent()"] ca6366ae_fe2b_5917_4222_4d130db44b4d["PythonClientDocs()"] ca6366ae_fe2b_5917_4222_4d130db44b4d -->|calls| 5c8a5552_d99c_5b0d_2132_040301f438bf 70c06384_8dda_31de_ba22_ce75a80729a6["newEditLink()"] 5c8a5552_d99c_5b0d_2132_040301f438bf -->|calls| 70c06384_8dda_31de_ba22_ce75a80729a6 569852a0_6fc2_34d0_9b3f_ea353f93379a["removeRedundantH1()"] 5c8a5552_d99c_5b0d_2132_040301f438bf -->|calls| 569852a0_6fc2_34d0_9b3f_ea353f93379a style 5c8a5552_d99c_5b0d_2132_040301f438bf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/app/guides/ai/python/[slug]/page.tsx lines 75–99
const getContent = async ({ slug }: Params) => {
const page = pageMap.find(({ slug: validSlug }) => validSlug && validSlug === slug)
if (!page) {
notFound()
}
const { remoteFile, meta } = page
const editLink = newEditLink(`${org}/${repo}/blob/${branch}/${docsDir}/${remoteFile}`)
const response = await fetchRevalidatePerDay(
`https://raw.githubusercontent.com/${org}/${repo}/${branch}/${docsDir}/${remoteFile}`
)
let content = await response.text()
content = removeRedundantH1(content)
return {
pathname: `/guides/ai/python/${slug}` satisfies `/${string}`,
meta,
content,
editLink,
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getContent() do?
getContent() is a function in the supabase codebase.
What does getContent() call?
getContent() calls 2 function(s): newEditLink, removeRedundantH1.
What calls getContent()?
getContent() is called by 1 function(s): PythonClientDocs.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free