Home / Function/ blog.schema() — astro Function Reference

blog.schema() — astro Function Reference

Architecture documentation for the blog.schema() function in content.config.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  696197b7_9474_f726_3b66_1635c0d8b8dd["blog.schema()"]
  212db3a7_d0cf_6098_c86c_e274c2bec978["content.config.ts"]
  696197b7_9474_f726_3b66_1635c0d8b8dd -->|defined in| 212db3a7_d0cf_6098_c86c_e274c2bec978
  style 696197b7_9474_f726_3b66_1635c0d8b8dd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/cloudflare/test/fixtures/compile-image-service/src/content.config.ts lines 8–23

	schema: ({ image }) =>
		z.object({
			image: z
				.string()
				.regex(/^https:.*/)
				.transform(
					(url) =>
						({
							src: url,
							width: 1200,
							height: 630,
							format: 'jpeg',
						}) satisfies ImageMetadata
				)
				.or(image()),
		}),

Domain

Subdomains

Frequently Asked Questions

What does blog.schema() do?
blog.schema() is a function in the astro codebase, defined in packages/integrations/cloudflare/test/fixtures/compile-image-service/src/content.config.ts.
Where is blog.schema() defined?
blog.schema() is defined in packages/integrations/cloudflare/test/fixtures/compile-image-service/src/content.config.ts at line 8.

Analyze Your Own Codebase

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

Try Supermodel Free