getContentPathsWithConfig() — astro Function Reference
Architecture documentation for the getContentPathsWithConfig() function in utils.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 4e37ff5a_e360_c343_3402_f5782af3bcf0["getContentPathsWithConfig()"] 7a09e708_c090_71c0_8138_7343699b1865["utils.ts"] 4e37ff5a_e360_c343_3402_f5782af3bcf0 -->|defined in| 7a09e708_c090_71c0_8138_7343699b1865 38ea7ddd_a3ec_4810_fa09_65e574335368["getContentPaths()"] 38ea7ddd_a3ec_4810_fa09_65e574335368 -->|calls| 4e37ff5a_e360_c343_3402_f5782af3bcf0 963a7d31_acfc_40bb_1769_fa4a5a1b6c4f["searchLiveConfig()"] 4e37ff5a_e360_c343_3402_f5782af3bcf0 -->|calls| 963a7d31_acfc_40bb_1769_fa4a5a1b6c4f style 4e37ff5a_e360_c343_3402_f5782af3bcf0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/content/utils.ts lines 753–770
function getContentPathsWithConfig(
root: string | URL,
srcDir: URL,
pkgBase: URL,
configStats: { exists: boolean; url: URL },
fs: typeof fsMod,
): ContentPaths {
const liveConfigStats = searchLiveConfig(fs, srcDir);
return {
root: new URL('./', root),
contentDir: new URL('./content/', srcDir),
assetsDir: new URL('./assets/', srcDir),
typesTemplate: new URL('templates/content/types.d.ts', pkgBase),
virtualModTemplate: new URL('templates/content/module.mjs', pkgBase),
config: configStats,
liveConfig: liveConfigStats,
};
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does getContentPathsWithConfig() do?
getContentPathsWithConfig() is a function in the astro codebase, defined in packages/astro/src/content/utils.ts.
Where is getContentPathsWithConfig() defined?
getContentPathsWithConfig() is defined in packages/astro/src/content/utils.ts at line 753.
What does getContentPathsWithConfig() call?
getContentPathsWithConfig() calls 1 function(s): searchLiveConfig.
What calls getContentPathsWithConfig()?
getContentPathsWithConfig() is called by 1 function(s): getContentPaths.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free