content.config.ts — astro Source File
Architecture documentation for content.config.ts, a typescript file in the astro codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 15dc5847_d458_b162_467d_4293dd00ce3e["content.config.ts"] 48f80d01_e646_3924_78f6_a9d836644746["astro:content"] 15dc5847_d458_b162_467d_4293dd00ce3e --> 48f80d01_e646_3924_78f6_a9d836644746 0f49b6f2_8b44_baf8_7812_a8fa2dd0ca84["zod"] 15dc5847_d458_b162_467d_4293dd00ce3e --> 0f49b6f2_8b44_baf8_7812_a8fa2dd0ca84 style 15dc5847_d458_b162_467d_4293dd00ce3e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { defineCollection } from 'astro:content';
import { z } from 'astro/zod';
const data = defineCollection({
loader: async () => ([
{ id: 1, title: 'One!' },
{ id: 2, title: 'Two!' },
{ id: 3, title: 'Three!' },
]),
schema: z.object({
id: z.number(),
title: z.string(),
}),
});
export const collections = {
data,
};
Domain
Subdomains
Functions
Dependencies
- astro:content
- zod
Source
Frequently Asked Questions
What does content.config.ts do?
content.config.ts is a source file in the astro codebase, written in typescript. It belongs to the IntegrationAdapters domain, SsrAdapters subdomain.
What functions are defined in content.config.ts?
content.config.ts defines 1 function(s): data.loader.
What does content.config.ts depend on?
content.config.ts imports 2 module(s): astro:content, zod.
Where is content.config.ts in the architecture?
content.config.ts is located at packages/astro/test/fixtures/content-collections-number-id/src/content.config.ts (domain: IntegrationAdapters, subdomain: SsrAdapters, directory: packages/astro/test/fixtures/content-collections-number-id/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free