Home / Function/ eachRouteInRouteData() — astro Function Reference

eachRouteInRouteData() — astro Function Reference

Architecture documentation for the eachRouteInRouteData() function in static-paths.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  f9b142d4_24cd_95b2_c85c_7791c215b053["eachRouteInRouteData()"]
  90a29f75_7e40_c6ca_4b3f_431e7f4d41c4["static-paths.ts"]
  f9b142d4_24cd_95b2_c85c_7791c215b053 -->|defined in| 90a29f75_7e40_c6ca_4b3f_431e7f4d41c4
  b66efb8f_3330_f7b0_10b6_3b7accce9458["getAll()"]
  b66efb8f_3330_f7b0_10b6_3b7accce9458 -->|calls| f9b142d4_24cd_95b2_c85c_7791c215b053
  style f9b142d4_24cd_95b2_c85c_7791c215b053 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/runtime/prerender/static-paths.ts lines 124–129

function* eachRouteInRouteData(route: RouteData): Generator<RouteData> {
	yield route;
	for (const fallbackRoute of route.fallbackRoutes) {
		yield fallbackRoute;
	}
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does eachRouteInRouteData() do?
eachRouteInRouteData() is a function in the astro codebase, defined in packages/astro/src/runtime/prerender/static-paths.ts.
Where is eachRouteInRouteData() defined?
eachRouteInRouteData() is defined in packages/astro/src/runtime/prerender/static-paths.ts at line 124.
What calls eachRouteInRouteData()?
eachRouteInRouteData() is called by 1 function(s): getAll.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free