insertRoute() — astro Function Reference
Architecture documentation for the insertRoute() function in pipeline.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 5c4d758d_9f6f_ac01_cdc5_283eed352176["insertRoute()"] 7feea19b_1eb1_3680_d050_0ea7bb95b6d3["ContainerPipeline"] 5c4d758d_9f6f_ac01_cdc5_283eed352176 -->|defined in| 7feea19b_1eb1_3680_d050_0ea7bb95b6d3 style 5c4d758d_9f6f_ac01_cdc5_283eed352176 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/container/pipeline.ts lines 74–81
insertRoute(route: RouteData, componentInstance: ComponentInstance): void {
this.#componentsInterner.set(route, {
page() {
return Promise.resolve(componentInstance);
},
onRequest: this.resolvedMiddleware,
});
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does insertRoute() do?
insertRoute() is a function in the astro codebase, defined in packages/astro/src/container/pipeline.ts.
Where is insertRoute() defined?
insertRoute() is defined in packages/astro/src/container/pipeline.ts at line 74.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free