Skip to content

Content Validation

Content collection validation is controlled by src/content.config.ts. If frontmatter does not match the schema, the build may fail.

  • 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.
  1. Open the file named in the error.
  2. Open src/content.config.ts.
  3. Compare the field with the schema.
  4. Correct the value.
  5. Run npm run build again.