getContent() — supabase Function Reference
Architecture documentation for the getContent() function in page.tsx from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 85a25c65_e0b3_49ba_65e3_40dcfb559600["getContent()"] 384bf141_9974_10c6_368c_13ffdc38a674["PGGraphQLDocs()"] 384bf141_9974_10c6_368c_13ffdc38a674 -->|calls| 85a25c65_e0b3_49ba_65e3_40dcfb559600 70c06384_8dda_31de_ba22_ce75a80729a6["newEditLink()"] 85a25c65_e0b3_49ba_65e3_40dcfb559600 -->|calls| 70c06384_8dda_31de_ba22_ce75a80729a6 2ba77918_c71f_00b4_2b40_c0b152543573["join()"] 85a25c65_e0b3_49ba_65e3_40dcfb559600 -->|calls| 2ba77918_c71f_00b4_2b40_c0b152543573 style 85a25c65_e0b3_49ba_65e3_40dcfb559600 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/app/guides/graphql/[[...slug]]/page.tsx lines 128–152
const getContent = async ({ slug }: Params) => {
const page = pageMap.find((page) => page.slug === slug?.at(0))
if (!page) {
notFound()
}
const { remoteFile, meta } = page
const editLink = newEditLink(`${org}/${repo}/blob/${branch}/${docsDir}/${remoteFile}`)
const response = await fetch(
`https://raw.githubusercontent.com/${org}/${repo}/${branch}/${docsDir}/${remoteFile}`,
{ cache: 'force-cache', next: { tags: [REVALIDATION_TAGS.GRAPHQL] } }
)
const content = await response.text()
return {
pathname: `/guides/graphql${slug?.length ? `/${slug.join('/')}` : ''}` satisfies `/${string}`,
meta,
content,
editLink,
}
}
Domain
Subdomains
Calls
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): join, newEditLink.
What calls getContent()?
getContent() is called by 1 function(s): PGGraphQLDocs.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free