Home / Function/ cats.loader() — astro Function Reference

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
  22d42e60_cf93_7708_3f5b_69e4cfd51196["cats.loader()"]
  417a2168_7db3_8ba7_a451_05ede087524a["content.config.ts"]
  22d42e60_cf93_7708_3f5b_69e4cfd51196 -->|defined in| 417a2168_7db3_8ba7_a451_05ede087524a
  style 22d42e60_cf93_7708_3f5b_69e4cfd51196 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/e2e/fixtures/cloudflare/src/content.config.ts lines 97–101

	loader: async function () {
		const file = new URL('data/cats.json', import.meta.url);
		const data = await readFile(file, 'utf-8');
		return JSON.parse(data);
	},

Subdomains

Frequently Asked Questions

What does cats.loader() do?
cats.loader() is a function in the astro codebase, defined in packages/astro/e2e/fixtures/cloudflare/src/content.config.ts.
Where is cats.loader() defined?
cats.loader() is defined in packages/astro/e2e/fixtures/cloudflare/src/content.config.ts at line 97.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free