Home / Function/ getStaticPaths() — astro Function Reference

getStaticPaths() — astro Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  690d210d_1c6d_5f8a_07d9_86e127717945["getStaticPaths()"]
  f963d09f_a57c_d469_76d3_c33ec49964c1["[image].svg.ts"]
  690d210d_1c6d_5f8a_07d9_86e127717945 -->|defined in| f963d09f_a57c_d469_76d3_c33ec49964c1
  style 690d210d_1c6d_5f8a_07d9_86e127717945 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/fixtures/with-endpoint-routes/src/pages/images/[image].svg.ts lines 1–3

export async function getStaticPaths() {
	return [{ params: { image: "1" } }, { params: { image: "2" } }];
}

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/images/[image].svg.ts.
Where is getStaticPaths() defined?
getStaticPaths() is defined in packages/astro/test/fixtures/with-endpoint-routes/src/pages/images/[image].svg.ts at line 1.

Analyze Your Own Codebase

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

Try Supermodel Free