mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
Update error message for custom slugs in collection (#7395)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
This commit is contained in:
parent
d67ae84610
commit
e407073c9e
1 changed files with 2 additions and 2 deletions
|
@ -1042,9 +1042,9 @@ See https://docs.astro.build/en/guides/server-side-rendering/ for more informati
|
|||
/**
|
||||
* @docs
|
||||
* @see
|
||||
* - [The reserved entry `slug` field](https://docs.astro.build/en/guides/content-collections/)
|
||||
* - [The reserved entry `slug` field](https://docs.astro.build/en/guides/content-collections/#defining-custom-slugs)
|
||||
* @description
|
||||
* A content collection schema should not contain the `slug` field. This is reserved by Astro for generating entry slugs. Remove the `slug` field from your schema, or choose a different name.
|
||||
* 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.
|
||||
*/
|
||||
ContentSchemaContainsSlugError: {
|
||||
title: 'Content Schema should not contain `slug`.',
|
||||
|
|
Loading…
Reference in a new issue