matchAllRoutes() — astro Function Reference
Architecture documentation for the matchAllRoutes() function in match.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD d2eca10d_fc0d_7e17_26ef_07ffb60e1179["matchAllRoutes()"] 0b4969b2_7e25_9c4a_3b7f_911a988f8209["match.ts"] d2eca10d_fc0d_7e17_26ef_07ffb60e1179 -->|defined in| 0b4969b2_7e25_9c4a_3b7f_911a988f8209 style d2eca10d_fc0d_7e17_26ef_07ffb60e1179 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/routing/match.ts lines 17–19
export function matchAllRoutes(pathname: string, manifest: RoutesList): RouteData[] {
return manifest.routes.filter((route) => route.pattern.test(pathname));
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does matchAllRoutes() do?
matchAllRoutes() is a function in the astro codebase, defined in packages/astro/src/core/routing/match.ts.
Where is matchAllRoutes() defined?
matchAllRoutes() is defined in packages/astro/src/core/routing/match.ts at line 17.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free