getRoutesForEnvironment() — astro Function Reference
Architecture documentation for the getRoutesForEnvironment() function in pages.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD b2f15e7c_85c3_2f88_a7bc_12f99918b35e["getRoutesForEnvironment()"] 6e737d15_0195_e062_7c54_997ea919572e["pages.ts"] b2f15e7c_85c3_2f88_a7bc_12f99918b35e -->|defined in| 6e737d15_0195_e062_7c54_997ea919572e c316a851_4c8c_a92e_d38e_5889e65c63ae["pluginPages()"] c316a851_4c8c_a92e_d38e_5889e65c63ae -->|calls| b2f15e7c_85c3_2f88_a7bc_12f99918b35e style b2f15e7c_85c3_2f88_a7bc_12f99918b35e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/vite-plugin-pages/pages.ts lines 21–32
function getRoutesForEnvironment(routes: RouteData[], isPrerender: boolean): Set<RouteData> {
const result = new Set<RouteData>();
for (const route of routes) {
if (route.prerender === isPrerender) {
result.add(route);
}
if (route.redirectRoute) {
result.add(route.redirectRoute);
}
}
return result;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getRoutesForEnvironment() do?
getRoutesForEnvironment() is a function in the astro codebase, defined in packages/astro/src/vite-plugin-pages/pages.ts.
Where is getRoutesForEnvironment() defined?
getRoutesForEnvironment() is defined in packages/astro/src/vite-plugin-pages/pages.ts at line 21.
What calls getRoutesForEnvironment()?
getRoutesForEnvironment() is called by 1 function(s): pluginPages.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free