prioritizePrerenderedMatchesComparator() — astro Function Reference
Architecture documentation for the prioritizePrerenderedMatchesComparator() function in routing.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 8386aac3_19ce_39c5_75d9_8b1431b13519["prioritizePrerenderedMatchesComparator()"] 023064dd_a580_49f4_740a_68db4b2f69c1["routing.ts"] 8386aac3_19ce_39c5_75d9_8b1431b13519 -->|defined in| 023064dd_a580_49f4_740a_68db4b2f69c1 f5d4b81a_de56_4781_49ee_e9bffe7908a3["getSortedPreloadedMatches()"] f5d4b81a_de56_4781_49ee_e9bffe7908a3 -->|calls| 8386aac3_19ce_39c5_75d9_8b1431b13519 bc2ad8e6_6e05_ef66_358c_a7d91bb23452["areRegexesEqual()"] 8386aac3_19ce_39c5_75d9_8b1431b13519 -->|calls| bc2ad8e6_6e05_ef66_358c_a7d91bb23452 style 8386aac3_19ce_39c5_75d9_8b1431b13519 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/prerender/routing.ts lines 56–64
function prioritizePrerenderedMatchesComparator(a: RouteData, b: RouteData): number {
if (areRegexesEqual(a.pattern, b.pattern)) {
if (a.prerender !== b.prerender) {
return a.prerender ? -1 : 1;
}
return a.component < b.component ? -1 : 1;
}
return 0;
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does prioritizePrerenderedMatchesComparator() do?
prioritizePrerenderedMatchesComparator() is a function in the astro codebase, defined in packages/astro/src/prerender/routing.ts.
Where is prioritizePrerenderedMatchesComparator() defined?
prioritizePrerenderedMatchesComparator() is defined in packages/astro/src/prerender/routing.ts at line 56.
What does prioritizePrerenderedMatchesComparator() call?
prioritizePrerenderedMatchesComparator() calls 1 function(s): areRegexesEqual.
What calls prioritizePrerenderedMatchesComparator()?
prioritizePrerenderedMatchesComparator() is called by 1 function(s): getSortedPreloadedMatches.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free