From 9686e529d8e9992c8391b0897818166ea0938ada Mon Sep 17 00:00:00 2001 From: Sarah Rainsberger Date: Tue, 10 Sep 2024 08:41:07 -0300 Subject: [PATCH] update legacy collections error messages --- packages/astro/src/core/errors/errors-data.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/astro/src/core/errors/errors-data.ts b/packages/astro/src/core/errors/errors-data.ts index cc8b1023c9b5..39aa06417341 100644 --- a/packages/astro/src/core/errors/errors-data.ts +++ b/packages/astro/src/core/errors/errors-data.ts @@ -1486,9 +1486,9 @@ export const InvalidContentEntrySlugError = { /** * @docs * @see - * - [The reserved entry `slug` field](https://docs.astro.build/en/guides/content-collections/#defining-custom-slugs) + * - [Legacy content collections](https://docs.astro.build/en/guides/content-collections/#collections-using-the-previous-api) * @description - * A 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. + * 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. */ export const ContentSchemaContainsSlugError = { name: 'ContentSchemaContainsSlugError', @@ -1501,9 +1501,9 @@ export const ContentSchemaContainsSlugError = { /** * @docs * @see - * - [Defining content collections](https://docs.astro.build/en/guides/content-collections/#defining-collections) + * - [Legacy content collections](https://docs.astro.build/en/guides/content-collections/#collections-using-the-previous-api) * @description - * A content collection cannot contain a mix of content and data entries. You must store entries in separate collections by type. + * A legacy content collection cannot contain a mix of content and data entries. You must store entries in separate collections by type. */ export const MixedContentDataCollectionError = { name: 'MixedContentDataCollectionError', @@ -1515,9 +1515,9 @@ export const MixedContentDataCollectionError = { /** * @docs * @see - * - [Defining content collections](https://docs.astro.build/en/guides/content-collections/#defining-collections) + * - [Legacy content collections](https://docs.astro.build/en/guides/content-collections/#collections-using-the-previous-api) * @description - * 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. + * 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. */ export const ContentCollectionTypeMismatchError = { name: 'ContentCollectionTypeMismatchError',