Skip to content

Commit

Permalink
[docs] update legacy collections error messages (again) (#11972)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah11918 authored Sep 12, 2024
1 parent 74722cb commit 7f4e162
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/astro/src/core/errors/errors-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@ export const InvalidContentEntrySlugError = {
/**
* @docs
* @see
* - [Legacy content collections](https://docs.astro.build/en/guides/content-collections/#collections-using-the-previous-api)
* - [Legacy content collections](https://docs.astro.build/en/guides/upgrade-to/v5/#updating-existing-collections)
* @description
* A legacy content collection schema should not contain the `slug` field. This is reserved by Astro for generating entry slugs. Remove `slug` from your schema. You can still use custom slugs in your frontmatter.
*/
Expand All @@ -1501,7 +1501,7 @@ export const ContentSchemaContainsSlugError = {
/**
* @docs
* @see
* - [Legacy content collections](https://docs.astro.build/en/guides/content-collections/#collections-using-the-previous-api)
* - [Legacy content collections](https://docs.astro.build/en/guides/upgrade-to/v5/#updating-existing-collections)
* @description
* A legacy content collection cannot contain a mix of content and data entries. You must store entries in separate collections by type.
*/
Expand All @@ -1515,7 +1515,7 @@ export const MixedContentDataCollectionError = {
/**
* @docs
* @see
* - [Legacy content collections](https://docs.astro.build/en/guides/content-collections/#collections-using-the-previous-api)
* - [Legacy content collections](https://docs.astro.build/en/guides/upgrade-to/v5/#updating-existing-collections)
* @description
* Legacy content collections must contain entries of the type configured. Collections are `type: 'content'` by default. Try adding `type: 'data'` to your collection config for data collections.
*/
Expand Down

0 comments on commit 7f4e162

Please sign in to comment.