diff --git a/src/content/docs/en/reference/error-reference.mdx b/src/content/docs/en/reference/error-reference.mdx index 4c00307257b25..a3fc27a681805 100644 --- a/src/content/docs/en/reference/error-reference.mdx +++ b/src/content/docs/en/reference/error-reference.mdx @@ -48,6 +48,7 @@ The following reference is a complete list of the errors you may encounter while - [**UnsupportedImageFormat**](/en/reference/errors/unsupported-image-format/)
Unsupported image format - [**UnsupportedImageConversion**](/en/reference/errors/unsupported-image-conversion/)
Unsupported image conversion - [**PrerenderDynamicEndpointPathCollide**](/en/reference/errors/prerender-dynamic-endpoint-path-collide/)
Prerendered dynamic endpoint has path collision. +- [**PrerenderRouteConflict**](/en/reference/errors/prerender-route-conflict/)
Prerendered route generates the same path as another route. - [**ExpectedImage**](/en/reference/errors/expected-image/)
Expected src to be an image. - [**ExpectedImageOptions**](/en/reference/errors/expected-image-options/)
Expected image options. - [**ExpectedNotESMImage**](/en/reference/errors/expected-not-esmimage/)
Expected image options, not an ESM-imported image. diff --git a/src/content/docs/en/reference/errors/font-family-not-found.mdx b/src/content/docs/en/reference/errors/font-family-not-found.mdx index 4ad59a45d6901..c7eeacfa7770f 100644 --- a/src/content/docs/en/reference/errors/font-family-not-found.mdx +++ b/src/content/docs/en/reference/errors/font-family-not-found.mdx @@ -13,7 +13,7 @@ import DontEditWarning from '~/components/DontEditWarning.astro' -> No data was found for the family passed to the Font component. +> No data was found for the `cssVariable` passed to the `` component or to the `getFontData()` function. ## What went wrong? Font family not found diff --git a/src/content/docs/en/reference/errors/prerender-route-conflict.mdx b/src/content/docs/en/reference/errors/prerender-route-conflict.mdx new file mode 100644 index 0000000000000..f706b6021c0b3 --- /dev/null +++ b/src/content/docs/en/reference/errors/prerender-route-conflict.mdx @@ -0,0 +1,26 @@ +--- +# NOTE: This file is auto-generated from 'scripts/error-docgen.mjs' +# Do not make edits to it directly, they will be overwritten. +# Instead, change this file: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts +# Translators, please remove this note and the component. + +title: Prerendered route generates the same path as another route. +i18nReady: true +githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts +--- +import DontEditWarning from '~/components/DontEditWarning.astro' + + + + +> **PrerenderRouteConflict**: Could not render `PATHNAME` from route `THIS_ROUTE` as it conflicts with higher priority route `WINNING_ROUTE`. + +## What went wrong? +Two prerendered routes generate the same path, resulting in a collision. +A static path can only be generated by one route. + +**See Also:** +- [`getStaticPaths()`](/en/reference/routing-reference/#getstaticpaths) +- [`params`](/en/reference/api-reference/#params) + +