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
  2e64c9b2_1e36_de2e_534b_3659ba45ddf2["getStaticPaths()"]
  9a1b4e22_32a1_028e_ccfc_c97504c960c2["[slug].json.ts"]
  2e64c9b2_1e36_de2e_534b_3659ba45ddf2 -->|defined in| 9a1b4e22_32a1_028e_ccfc_c97504c960c2
  style 2e64c9b2_1e36_de2e_534b_3659ba45ddf2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/fixtures/with-endpoint-routes/src/pages/data/[slug].json.ts lines 1–6

export async function getStaticPaths() {
    return [
        { params: { slug: 'thing3' } },
        { params: { slug: 'thing4' } }
    ];
}

Subdomains

Frequently Asked Questions

What does getStaticPaths() do?
getStaticPaths() is a function in the astro codebase, defined in packages/astro/test/fixtures/with-endpoint-routes/src/pages/data/[slug].json.ts.
Where is getStaticPaths() defined?
getStaticPaths() is defined in packages/astro/test/fixtures/with-endpoint-routes/src/pages/data/[slug].json.ts at line 1.

Analyze Your Own Codebase

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

Try Supermodel Free