Home / Function/ getStaticPaths() — astro Function Reference

getStaticPaths() — astro Function Reference

Architecture documentation for the getStaticPaths() function in [lang].json.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  2a036e9e_8ab5_a4b7_dee2_69102b1ce86b["getStaticPaths()"]
  f9cb52a2_fcfd_8150_f592_00e4db6d3a00["[lang].json.js"]
  2a036e9e_8ab5_a4b7_dee2_69102b1ce86b -->|defined in| f9cb52a2_fcfd_8150_f592_00e4db6d3a00
  style 2a036e9e_8ab5_a4b7_dee2_69102b1ce86b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/fixtures/data-collections-schema/src/pages/translations/[lang].json.js lines 5–7

export function getStaticPaths() {
	return langs.map((lang) => ({ params: { lang } }));
}

Subdomains

Frequently Asked Questions

What does getStaticPaths() do?
getStaticPaths() is a function in the astro codebase, defined in packages/astro/test/fixtures/data-collections-schema/src/pages/translations/[lang].json.js.
Where is getStaticPaths() defined?
getStaticPaths() is defined in packages/astro/test/fixtures/data-collections-schema/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