reduceAllPaths() — astro Function Reference
Architecture documentation for the reduceAllPaths() function in generate-routes-json.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 298714b3_acee_7cfa_6509_a32cf6723cc8["reduceAllPaths()"] 55782c85_47d4_4354_44a2_7507d9d6dbee["PathTrie"] 298714b3_acee_7cfa_6509_a32cf6723cc8 -->|defined in| 55782c85_47d4_4354_44a2_7507d9d6dbee 8640426d_7494_3130_6574_2a01f8ff809d["createRoutesFile()"] 8640426d_7494_3130_6574_2a01f8ff809d -->|calls| 298714b3_acee_7cfa_6509_a32cf6723cc8 55fc1e94_7bfe_6a4d_6e4d_c4ae7e7158bb["reduce()"] 298714b3_acee_7cfa_6509_a32cf6723cc8 -->|calls| 55fc1e94_7bfe_6a4d_6e4d_c4ae7e7158bb style 298714b3_acee_7cfa_6509_a32cf6723cc8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/cloudflare/src/utils/generate-routes-json.ts lines 154–157
reduceAllPaths(compTrie: PathTrie): this {
this.reduce(compTrie.root, this.root);
return this;
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does reduceAllPaths() do?
reduceAllPaths() is a function in the astro codebase, defined in packages/integrations/cloudflare/src/utils/generate-routes-json.ts.
Where is reduceAllPaths() defined?
reduceAllPaths() is defined in packages/integrations/cloudflare/src/utils/generate-routes-json.ts at line 154.
What does reduceAllPaths() call?
reduceAllPaths() calls 1 function(s): reduce.
What calls reduceAllPaths()?
reduceAllPaths() is called by 1 function(s): createRoutesFile.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free