Home / Function/ getStaticPaths() — astro Function Reference

getStaticPaths() — astro Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  73d6e472_a55e_3863_e3bf_232bdf9dc486["getStaticPaths()"]
  3126e95e_06a1_741f_9576_dd0aecf5dd22["[...file].js"]
  73d6e472_a55e_3863_e3bf_232bdf9dc486 -->|defined in| 3126e95e_06a1_741f_9576_dd0aecf5dd22
  style 73d6e472_a55e_3863_e3bf_232bdf9dc486 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/fixtures/astro-basic/src/pages/get-static-paths-with-mjs/[...file].js lines 1–6

export function getStaticPaths() {
  return [
    { params: { file: 'example.mjs' } },
    { params: { file: 'example.js' } },
  ];
}

Subdomains

Frequently Asked Questions

What does getStaticPaths() do?
getStaticPaths() is a function in the astro codebase, defined in packages/astro/test/fixtures/astro-basic/src/pages/get-static-paths-with-mjs/[...file].js.
Where is getStaticPaths() defined?
getStaticPaths() is defined in packages/astro/test/fixtures/astro-basic/src/pages/get-static-paths-with-mjs/[...file].js at line 1.

Analyze Your Own Codebase

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

Try Supermodel Free