Content Validation
Content collection validation is controlled by src/content.config.ts. If frontmatter does not match the schema, the build may fail.
Check These First
Section titled “Check These First”- Required fields are present.
- Dates use the expected format.
- Boolean values are not quoted as strings.
- Arrays are indented correctly.
- Image fields match the expected type.
- References use valid slugs.
Fixing a Validation Error
Section titled “Fixing a Validation Error”- Open the file named in the error.
- Open
src/content.config.ts. - Compare the field with the schema.
- Correct the value.
- Run
npm run buildagain.