Home / Function/ getStaticPaths() — astro Function Reference

getStaticPaths() — astro Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  3d5fb1cd_f257_dcae_4c35_9d634eded436["getStaticPaths()"]
  280b970c_7238_b31a_6a22_934fe958ecb3["[...slug].json.ts"]
  3d5fb1cd_f257_dcae_4c35_9d634eded436 -->|defined in| 280b970c_7238_b31a_6a22_934fe958ecb3
  style 3d5fb1cd_f257_dcae_4c35_9d634eded436 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/fixtures/routing-priority/src/pages/api/catch/[...slug].json.ts lines 11–13

export function getStaticPaths() {
  return [{ params: { slug: 'a' } }, { params: { slug: 'b/c' } }];
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free