Home / Function/ getStaticPaths() — astro Function Reference

getStaticPaths() — astro Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  71ad2a75_948e_8a56_bd7d_61c3c38a1227["getStaticPaths()"]
  7283df45_32da_d4df_befb_9095b4af680e["[id].json.js"]
  71ad2a75_948e_8a56_bd7d_61c3c38a1227 -->|defined in| 7283df45_32da_d4df_befb_9095b4af680e
  style 71ad2a75_948e_8a56_bd7d_61c3c38a1227 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

export function getStaticPaths() {
	return ids.map((id) => ({ params: { id } }));
}

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/authors/[id].json.js.
Where is getStaticPaths() defined?
getStaticPaths() is defined in packages/astro/test/fixtures/data-collections-schema/src/pages/authors/[id].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