getStaticPaths() — astro Function Reference
Architecture documentation for the getStaticPaths() function in [foo]-[bar].json.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 137621ad_fadd_8d2f_fdca_3439712d1c97["getStaticPaths()"] a6a32f87_5bfb_556f_b503_172103c5aea2["[foo]-[bar].json.ts"] 137621ad_fadd_8d2f_fdca_3439712d1c97 -->|defined in| a6a32f87_5bfb_556f_b503_172103c5aea2 style 137621ad_fadd_8d2f_fdca_3439712d1c97 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/test/fixtures/routing-priority/src/pages/api/catch/[foo]-[bar].json.ts lines 12–14
export function getStaticPaths() {
return [{ params: { foo: 'a', bar: 'b' } }];
}
Domain
Subdomains
Source
Frequently Asked Questions
What does getStaticPaths() do?
getStaticPaths() is a function in the astro codebase, defined in packages/astro/test/fixtures/routing-priority/src/pages/api/catch/[foo]-[bar].json.ts.
Where is getStaticPaths() defined?
getStaticPaths() is defined in packages/astro/test/fixtures/routing-priority/src/pages/api/catch/[foo]-[bar].json.ts at line 12.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free