Home / File/ content.config.ts — astro Source File

content.config.ts — astro Source File

Architecture documentation for content.config.ts, a typescript file in the astro codebase. 3 imports, 0 dependents.

File typescript 3 imports

Entity Profile

Dependency Diagram

graph LR
  92487233_ba12_00f1_7fae_bf064feadd07["content.config.ts"]
  199cb0c0_7c92_5375_9195_0f59939b49ed["astro:content"]
  92487233_ba12_00f1_7fae_bf064feadd07 --> 199cb0c0_7c92_5375_9195_0f59939b49ed
  82c23b20_84b3_3038_cd30_be2e0f2ef654["zod"]
  92487233_ba12_00f1_7fae_bf064feadd07 --> 82c23b20_84b3_3038_cd30_be2e0f2ef654
  57096fb8_3fb5_1319_b2b6_ba8488b380f0["loaders"]
  92487233_ba12_00f1_7fae_bf064feadd07 --> 57096fb8_3fb5_1319_b2b6_ba8488b380f0
  style 92487233_ba12_00f1_7fae_bf064feadd07 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { defineCollection } from 'astro:content';
import { z } from 'astro/zod';
import { glob } from 'astro/loaders';

const blog = defineCollection({
	loader: glob({ pattern: '**/*.{md,mdx}', base: './src/content/blog' }),
	schema: z.object({
		title: z.string()
	})
});

export const collections = { blog };

Dependencies

  • astro:content
  • loaders
  • zod

Frequently Asked Questions

What does content.config.ts do?
content.config.ts is a source file in the astro codebase, written in typescript.
What does content.config.ts depend on?
content.config.ts imports 3 module(s): astro:content, loaders, zod.
Where is content.config.ts in the architecture?
content.config.ts is located at packages/astro/test/fixtures/content-collections-cache-invalidation/src/content.config.ts (directory: packages/astro/test/fixtures/content-collections-cache-invalidation/src).

Analyze Your Own Codebase

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

Try Supermodel Free