getConfig() — ui Function Reference
Architecture documentation for the getConfig() function in get-config.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD accda39a_0dd0_5dea_eb7b_df6ae4616716["getConfig()"] 913f04e7_90de_d0b5_5068_4dacd40de96e["get-config.ts"] accda39a_0dd0_5dea_eb7b_df6ae4616716 -->|defined in| 913f04e7_90de_d0b5_5068_4dacd40de96e 3e550a61_55f0_0b18_8c86_a41e60ec5926["getWorkspaceConfig()"] 3e550a61_55f0_0b18_8c86_a41e60ec5926 -->|calls| accda39a_0dd0_5dea_eb7b_df6ae4616716 85bede48_57b0_6dfb_357b_3f61f57acdee["getRawConfig()"] accda39a_0dd0_5dea_eb7b_df6ae4616716 -->|calls| 85bede48_57b0_6dfb_357b_3f61f57acdee b2c37284_9293_dd2f_f854_08ac035b9dfd["resolveConfigPaths()"] accda39a_0dd0_5dea_eb7b_df6ae4616716 -->|calls| b2c37284_9293_dd2f_f854_08ac035b9dfd style accda39a_0dd0_5dea_eb7b_df6ae4616716 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/shadcn/src/utils/get-config.ts lines 31–44
export async function getConfig(cwd: string) {
const config = await getRawConfig(cwd)
if (!config) {
return null
}
// Set default icon library if not provided.
if (!config.iconLibrary) {
config.iconLibrary = config.style === "new-york" ? "radix" : "lucide"
}
return await resolveConfigPaths(cwd, config)
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does getConfig() do?
getConfig() is a function in the ui codebase, defined in packages/shadcn/src/utils/get-config.ts.
Where is getConfig() defined?
getConfig() is defined in packages/shadcn/src/utils/get-config.ts at line 31.
What does getConfig() call?
getConfig() calls 2 function(s): getRawConfig, resolveConfigPaths.
What calls getConfig()?
getConfig() is called by 1 function(s): getWorkspaceConfig.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free