redirectNonexistentReferenceSection() — supabase Function Reference
Architecture documentation for the redirectNonexistentReferenceSection() function in Reference.utils.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 0df772dc_7499_81c0_d9d9_35372b5ce3b3["redirectNonexistentReferenceSection()"] 3209e6f3_8d6d_ac1c_7e61_019ebb7c0ba8["ReferencePage()"] 3209e6f3_8d6d_ac1c_7e61_019ebb7c0ba8 -->|calls| 0df772dc_7499_81c0_d9d9_35372b5ce3b3 e5621df4_f983_6c82_b1d0_7a7765d09873["generateStaticParamsForSdkVersion()"] 0df772dc_7499_81c0_d9d9_35372b5ce3b3 -->|calls| e5621df4_f983_6c82_b1d0_7a7765d09873 style 0df772dc_7499_81c0_d9d9_35372b5ce3b3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/features/docs/Reference.utils.ts lines 195–211
export async function redirectNonexistentReferenceSection(
sdkId: string,
version: string,
path: Array<string>,
isLatestVersion: boolean
) {
const initialSelectedSection = path[0]
const validSlugs = await generateStaticParamsForSdkVersion(sdkId, version)
if (
initialSelectedSection &&
!validSlugs.some((params) => params.slug[0] === initialSelectedSection)
) {
redirect(`/reference/${sdkId}` + (!isLatestVersion ? '/' + version : ''))
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does redirectNonexistentReferenceSection() do?
redirectNonexistentReferenceSection() is a function in the supabase codebase.
What does redirectNonexistentReferenceSection() call?
redirectNonexistentReferenceSection() calls 1 function(s): generateStaticParamsForSdkVersion.
What calls redirectNonexistentReferenceSection()?
redirectNonexistentReferenceSection() is called by 1 function(s): ReferencePage.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free