diff options
author | 2023-02-01 09:29:34 -0300 | |
---|---|---|
committer | 2023-02-01 09:29:34 -0300 | |
commit | e193dfad1ec0d9bf857f0cce314c0127234c8bea (patch) | |
tree | 923b727a9eb6e06ae110fb843ec21b92acdea358 | |
parent | e3e2498248386169e5b56405f7d19d380cbeb72d (diff) | |
download | astro-e193dfad1ec0d9bf857f0cce314c0127234c8bea.tar.gz astro-e193dfad1ec0d9bf857f0cce314c0127234c8bea.tar.zst astro-e193dfad1ec0d9bf857f0cce314c0127234c8bea.zip |
Add JSDOC `@message` to fix docs error pages (#6076)
Diffstat (limited to '')
-rw-r--r-- | packages/astro/src/core/errors/errors-data.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/astro/src/core/errors/errors-data.ts b/packages/astro/src/core/errors/errors-data.ts index da9f3c1a0..ad71c4e0f 100644 --- a/packages/astro/src/core/errors/errors-data.ts +++ b/packages/astro/src/core/errors/errors-data.ts @@ -629,6 +629,7 @@ See https://docs.astro.build/en/guides/server-side-rendering/ for more informati }, /** * @docs + * @message `COLLECTION_NAME` → `ENTRY_ID` has an invalid slug. `slug` must be a string. * @see * - [The reserved entry `slug` field](https://docs.astro.build/en/guides/content-collections/) * @description @@ -646,6 +647,7 @@ See https://docs.astro.build/en/guides/server-side-rendering/ for more informati }, /** * @docs + * @message A content collection schema should not contain `slug` since it is reserved for slug generation. Remove this from your `COLLECTION_NAME` collection schema. * @see * - [The reserved entry `slug` field](https://docs.astro.build/en/guides/content-collections/) * @description |