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