diff options
author | 2023-06-22 12:10:59 +0200 | |
---|---|---|
committer | 2023-06-22 12:10:59 +0200 | |
commit | 03b7d17b99a7af2ff2d9de171455df7778fca368 (patch) | |
tree | d1859af7346083e494276d05508f36ce7a52ed00 | |
parent | 9739adc91f967a59f50dd8c2862e7e4b2bcf74b4 (diff) | |
download | astro-03b7d17b99a7af2ff2d9de171455df7778fca368.tar.gz astro-03b7d17b99a7af2ff2d9de171455df7778fca368.tar.zst astro-03b7d17b99a7af2ff2d9de171455df7778fca368.zip |
Fix two errors for use in docs (#7445)
-rw-r--r-- | packages/astro/src/core/errors/errors-data.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/astro/src/core/errors/errors-data.ts b/packages/astro/src/core/errors/errors-data.ts index b8babd91a..7d811faff 100644 --- a/packages/astro/src/core/errors/errors-data.ts +++ b/packages/astro/src/core/errors/errors-data.ts @@ -547,9 +547,7 @@ See https://docs.astro.build/en/guides/server-side-rendering/ for more informati title: 'Prerendered dynamic endpoint has path collision.', code: 3026, message: (pathname: string) => - `Could not render \`${pathname}\` with an \`undefined\` param as the generated path will collide during prerendering. ` + - `Prevent passing \`undefined\` as \`params\` for the endpoint's \`getStaticPaths()\` function, ` + - `or add an additional extension to the endpoint's filename.`, + `Could not render \`${pathname}\` with an \`undefined\` param as the generated path will collide during prerendering. Prevent passing \`undefined\` as \`params\` for the endpoint's \`getStaticPaths()\` function, or add an additional extension to the endpoint's filename.`, hint: (filename: string) => `Rename \`${filename}\` to \`${filename.replace(/\.(js|ts)/, (m) => `.json` + m)}\``, }, @@ -694,7 +692,7 @@ See https://docs.astro.build/en/guides/server-side-rendering/ for more informati '`locals` can only be assigned to an object. Other values like numbers, strings, etc. are not accepted.', hint: 'If you tried to remove some information from the `locals` object, try to use `delete` or set the property to `undefined`.', }, - /* + /** * @docs * @see * - [Assets (Experimental)](https://docs.astro.build/en/guides/assets/) |