devMatch() — astro Function Reference
Architecture documentation for the devMatch() function in app.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 2bb6776f_f585_35a0_c0da_3d9cf1f798df["devMatch()"] df0b0a04_8315_c9cf_d541_013f247434eb["AstroServerApp"] 2bb6776f_f585_35a0_c0da_3d9cf1f798df -->|defined in| df0b0a04_8315_c9cf_d541_013f247434eb 752a8772_d13c_3672_c3b6_a2fcc170d976["handleRequest()"] 752a8772_d13c_3672_c3b6_a2fcc170d976 -->|calls| 2bb6776f_f585_35a0_c0da_3d9cf1f798df style 2bb6776f_f585_35a0_c0da_3d9cf1f798df fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/vite-plugin-app/app.ts lines 64–79
async devMatch(pathname: string): Promise<DevMatch | undefined> {
const matchedRoute = await matchRoute(
pathname,
this.manifestData,
this.pipeline as unknown as RunnablePipeline,
this.manifest,
);
if (!matchedRoute) {
return undefined;
}
return {
routeData: matchedRoute.route,
resolvedPathname: matchedRoute.resolvedPathname,
};
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does devMatch() do?
devMatch() is a function in the astro codebase, defined in packages/astro/src/vite-plugin-app/app.ts.
Where is devMatch() defined?
devMatch() is defined in packages/astro/src/vite-plugin-app/app.ts at line 64.
What calls devMatch()?
devMatch() is called by 1 function(s): handleRequest.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free