getStaticPaths() — astro Function Reference
Architecture documentation for the getStaticPaths() function in [param].json.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD b75b7d0e_debc_5986_e795_cf2b9191bbd1["getStaticPaths()"] 5a1ed0bf_656b_4fc5_5a1b_a5ee4879003f["[param].json.js"] b75b7d0e_debc_5986_e795_cf2b9191bbd1 -->|defined in| 5a1ed0bf_656b_4fc5_5a1b_a5ee4879003f style b75b7d0e_debc_5986_e795_cf2b9191bbd1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/test/fixtures/api-routes/src/pages/context/data/[param].json.js lines 2–15
export function getStaticPaths() {
return [
{
params: {
param: 'one'
}
},
{
params: {
param: 'two'
}
},
]
}
Domain
Subdomains
Source
Frequently Asked Questions
What does getStaticPaths() do?
getStaticPaths() is a function in the astro codebase, defined in packages/astro/test/fixtures/api-routes/src/pages/context/data/[param].json.js.
Where is getStaticPaths() defined?
getStaticPaths() is defined in packages/astro/test/fixtures/api-routes/src/pages/context/data/[param].json.js at line 2.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free