Home / Function/ getStaticPaths() — astro Function Reference

getStaticPaths() — astro Function Reference

Architecture documentation for the getStaticPaths() function in [...slug].ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  cf00a86d_ef66_d4cf_2cbd_ce84ce793009["getStaticPaths()"]
  63ebebf0_41e8_ce62_6b03_6798cd315995["[...slug].ts"]
  cf00a86d_ef66_d4cf_2cbd_ce84ce793009 -->|defined in| 63ebebf0_41e8_ce62_6b03_6798cd315995
  style cf00a86d_ef66_d4cf_2cbd_ce84ce793009 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/fixtures/dynamic-endpoint-collision/src/pages/api/catch/[...slug].ts lines 11–13

export function getStaticPaths() {
	return slugs.map((u) => ({ params: { slug: u } }));
}

Subdomains

Frequently Asked Questions

What does getStaticPaths() do?
getStaticPaths() is a function in the astro codebase, defined in packages/astro/test/fixtures/dynamic-endpoint-collision/src/pages/api/catch/[...slug].ts.
Where is getStaticPaths() defined?
getStaticPaths() is defined in packages/astro/test/fixtures/dynamic-endpoint-collision/src/pages/api/catch/[...slug].ts at line 11.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free