handleStaticPathsRequest() — astro Function Reference
Architecture documentation for the handleStaticPathsRequest() function in prerender.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 889aedb6_0bb4_72fe_5071_1ac16168291c["handleStaticPathsRequest()"] 48b50da0_daf1_dfed_c56f_65e6f20889c9["prerender.ts"] 889aedb6_0bb4_72fe_5071_1ac16168291c -->|defined in| 48b50da0_daf1_dfed_c56f_65e6f20889c9 style 889aedb6_0bb4_72fe_5071_1ac16168291c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/cloudflare/src/utils/prerender.ts lines 44–56
export async function handleStaticPathsRequest(app: BaseApp): Promise<Response> {
const staticPaths = new StaticPaths(app);
const paths = await staticPaths.getAll();
const response: StaticPathsResponse = {
paths: paths.map(({ pathname, route }) => ({
pathname,
route: serializeRouteData(route, app.manifest.trailingSlash),
})),
};
return new Response(JSON.stringify(response), {
headers: { 'Content-Type': 'application/json' },
});
}
Domain
Subdomains
Source
Frequently Asked Questions
What does handleStaticPathsRequest() do?
handleStaticPathsRequest() is a function in the astro codebase, defined in packages/integrations/cloudflare/src/utils/prerender.ts.
Where is handleStaticPathsRequest() defined?
handleStaticPathsRequest() is defined in packages/integrations/cloudflare/src/utils/prerender.ts at line 44.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free