Home / Function/ searchLegacyConfig() — astro Function Reference

searchLegacyConfig() — astro Function Reference

Architecture documentation for the searchLegacyConfig() function in utils.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  966b7a30_79ce_3d35_f299_f8c16ffba798["searchLegacyConfig()"]
  7a09e708_c090_71c0_8138_7343699b1865["utils.ts"]
  966b7a30_79ce_3d35_f299_f8c16ffba798 -->|defined in| 7a09e708_c090_71c0_8138_7343699b1865
  38ea7ddd_a3ec_4810_fa09_65e574335368["getContentPaths()"]
  38ea7ddd_a3ec_4810_fa09_65e574335368 -->|calls| 966b7a30_79ce_3d35_f299_f8c16ffba798
  cd84d6e1_92d2_4736_d9f7_adb765de0289["search()"]
  966b7a30_79ce_3d35_f299_f8c16ffba798 -->|calls| cd84d6e1_92d2_4736_d9f7_adb765de0289
  style 966b7a30_79ce_3d35_f299_f8c16ffba798 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/content/utils.ts lines 782–790

function searchLegacyConfig(fs: typeof fsMod, srcDir: URL): { exists: boolean; url: URL } {
	const paths = [
		'content/config.ts',
		'content/config.js',
		'content/config.mjs',
		'content/config.mts',
	];
	return search(fs, srcDir, paths);
}

Subdomains

Calls

Called By

Frequently Asked Questions

What does searchLegacyConfig() do?
searchLegacyConfig() is a function in the astro codebase, defined in packages/astro/src/content/utils.ts.
Where is searchLegacyConfig() defined?
searchLegacyConfig() is defined in packages/astro/src/content/utils.ts at line 782.
What does searchLegacyConfig() call?
searchLegacyConfig() calls 1 function(s): search.
What calls searchLegacyConfig()?
searchLegacyConfig() 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