mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
Fix two errors for use in docs (#7445)
This commit is contained in:
parent
9739adc91f
commit
03b7d17b99
1 changed files with 2 additions and 4 deletions
|
@ -547,9 +547,7 @@ See https://docs.astro.build/en/guides/server-side-rendering/ for more informati
|
||||||
title: 'Prerendered dynamic endpoint has path collision.',
|
title: 'Prerendered dynamic endpoint has path collision.',
|
||||||
code: 3026,
|
code: 3026,
|
||||||
message: (pathname: string) =>
|
message: (pathname: string) =>
|
||||||
`Could not render \`${pathname}\` with an \`undefined\` param as the generated path will collide during prerendering. ` +
|
`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.`,
|
||||||
`Prevent passing \`undefined\` as \`params\` for the endpoint's \`getStaticPaths()\` function, ` +
|
|
||||||
`or add an additional extension to the endpoint's filename.`,
|
|
||||||
hint: (filename: string) =>
|
hint: (filename: string) =>
|
||||||
`Rename \`${filename}\` to \`${filename.replace(/\.(js|ts)/, (m) => `.json` + m)}\``,
|
`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.',
|
'`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`.',
|
hint: 'If you tried to remove some information from the `locals` object, try to use `delete` or set the property to `undefined`.',
|
||||||
},
|
},
|
||||||
/*
|
/**
|
||||||
* @docs
|
* @docs
|
||||||
* @see
|
* @see
|
||||||
* - [Assets (Experimental)](https://docs.astro.build/en/guides/assets/)
|
* - [Assets (Experimental)](https://docs.astro.build/en/guides/assets/)
|
||||||
|
|
Loading…
Reference in a new issue