generateStaticParams() — ui Function Reference
Architecture documentation for the generateStaticParams() function in page.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 1913968b_42d9_7dbc_3ff7_266a41c69e68["generateStaticParams()"] 3a58ab06_5d4b_5607_01b6_9b055f101a35["page.tsx"] 1913968b_42d9_7dbc_3ff7_266a41c69e68 -->|defined in| 3a58ab06_5d4b_5607_01b6_9b055f101a35 style 1913968b_42d9_7dbc_3ff7_266a41c69e68 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/app/(create)/preview/[base]/[name]/page.tsx lines 83–105
export async function generateStaticParams() {
const { Index } = await import("@/registry/bases/__index__")
const params: Array<{ base: string; name: string }> = []
for (const base of BASES) {
if (!Index[base.name]) {
continue
}
const styleIndex = Index[base.name]
for (const itemName in styleIndex) {
const item = styleIndex[itemName]
if (ALLOWED_ITEM_TYPES.includes(item.type)) {
params.push({
base: base.name,
name: item.name,
})
}
}
}
return params
}
Domain
Subdomains
Source
Frequently Asked Questions
What does generateStaticParams() do?
generateStaticParams() is a function in the ui codebase, defined in apps/v4/app/(create)/preview/[base]/[name]/page.tsx.
Where is generateStaticParams() defined?
generateStaticParams() is defined in apps/v4/app/(create)/preview/[base]/[name]/page.tsx at line 83.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free