cats.loader() — astro Function Reference
Architecture documentation for the cats.loader() function in content.config.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 6be5b886_b7ae_c9b3_0539_57c3b2caa430["cats.loader()"] 6701f32e_5f47_2ad2_aaa6_e72b4a79cbcc["content.config.ts"] 6be5b886_b7ae_c9b3_0539_57c3b2caa430 -->|defined in| 6701f32e_5f47_2ad2_aaa6_e72b4a79cbcc style 6be5b886_b7ae_c9b3_0539_57c3b2caa430 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/test/fixtures/content-layer/src/content.config.ts lines 114–118
loader: async function () {
const file = new URL('data/cats.json', import.meta.url);
const data = await readFile(file, 'utf-8');
return JSON.parse(data);
},
Domain
Subdomains
Source
Frequently Asked Questions
What does cats.loader() do?
cats.loader() is a function in the astro codebase, defined in packages/astro/test/fixtures/content-layer/src/content.config.ts.
Where is cats.loader() defined?
cats.loader() is defined in packages/astro/test/fixtures/content-layer/src/content.config.ts at line 114.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free