toIntegrationResolvedRoute() — astro Function Reference
Architecture documentation for the toIntegrationResolvedRoute() function in hooks.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 1c4350fc_98c4_70f5_ebf6_d597fbdd7e8c["toIntegrationResolvedRoute()"] 19f4084c_157f_a15d_f001_5d8088b75dee["hooks.ts"] 1c4350fc_98c4_70f5_ebf6_d597fbdd7e8c -->|defined in| 19f4084c_157f_a15d_f001_5d8088b75dee f41f800a_ba75_9363_1ed3_86d98af0660b["runHookRoutesResolved()"] f41f800a_ba75_9363_1ed3_86d98af0660b -->|calls| 1c4350fc_98c4_70f5_ebf6_d597fbdd7e8c style 1c4350fc_98c4_70f5_ebf6_d597fbdd7e8c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/integrations/hooks.ts lines 684–704
export function toIntegrationResolvedRoute(
route: RouteData,
trailingSlash: AstroConfig['trailingSlash'],
): IntegrationResolvedRoute {
return {
isPrerendered: route.prerender,
entrypoint: route.component,
pattern: route.route,
params: route.params,
origin: route.origin,
generate: getRouteGenerator(route.segments, trailingSlash),
patternRegex: route.pattern,
segments: route.segments,
type: route.type,
pathname: route.pathname,
redirect: route.redirect,
redirectRoute: route.redirectRoute
? toIntegrationResolvedRoute(route.redirectRoute, trailingSlash)
: undefined,
};
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does toIntegrationResolvedRoute() do?
toIntegrationResolvedRoute() is a function in the astro codebase, defined in packages/astro/src/integrations/hooks.ts.
Where is toIntegrationResolvedRoute() defined?
toIntegrationResolvedRoute() is defined in packages/astro/src/integrations/hooks.ts at line 684.
What calls toIntegrationResolvedRoute()?
toIntegrationResolvedRoute() is called by 1 function(s): runHookRoutesResolved.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free