ContentSchemaContainsSlugError.message() — astro Function Reference
Architecture documentation for the ContentSchemaContainsSlugError.message() function in errors-data.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD ce25da0d_e1ab_43ea_5419_b7758c250b4d["ContentSchemaContainsSlugError.message()"] 0e25cce4_bb3d_83b8_da61_b3d3cc567b74["errors-data.ts"] ce25da0d_e1ab_43ea_5419_b7758c250b4d -->|defined in| 0e25cce4_bb3d_83b8_da61_b3d3cc567b74 style ce25da0d_e1ab_43ea_5419_b7758c250b4d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/errors/errors-data.ts lines 1851–1852
message: (collectionName: string) =>
`A content collection schema should not contain \`slug\` since it is reserved for slug generation. Remove this from your ${collectionName} collection schema.`,
Domain
Subdomains
Source
Frequently Asked Questions
What does ContentSchemaContainsSlugError.message() do?
ContentSchemaContainsSlugError.message() is a function in the astro codebase, defined in packages/astro/src/core/errors/errors-data.ts.
Where is ContentSchemaContainsSlugError.message() defined?
ContentSchemaContainsSlugError.message() is defined in packages/astro/src/core/errors/errors-data.ts at line 1851.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free