Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/content/docs/en/reference/error-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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/)<br/>Unsupported image format
- [**UnsupportedImageConversion**](/en/reference/errors/unsupported-image-conversion/)<br/>Unsupported image conversion
- [**PrerenderDynamicEndpointPathCollide**](/en/reference/errors/prerender-dynamic-endpoint-path-collide/)<br/>Prerendered dynamic endpoint has path collision.
- [**PrerenderRouteConflict**](/en/reference/errors/prerender-route-conflict/)<br/>Prerendered route generates the same path as another route.
- [**ExpectedImage**](/en/reference/errors/expected-image/)<br/>Expected src to be an image.
- [**ExpectedImageOptions**](/en/reference/errors/expected-image-options/)<br/>Expected image options.
- [**ExpectedNotESMImage**](/en/reference/errors/expected-not-esmimage/)<br/>Expected image options, not an ESM-imported image.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import DontEditWarning from '~/components/DontEditWarning.astro'
<DontEditWarning />


> No data was found for the family passed to the Font component.
> No data was found for the `cssVariable` passed to the `<Font />` component or to the `getFontData()` function.

## What went wrong?
Font family not found
Expand Down
26 changes: 26 additions & 0 deletions src/content/docs/en/reference/errors/prerender-route-conflict.mdx
Original file line number Diff line number Diff line change
@@ -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 <DontEditWarning/> 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'

<DontEditWarning />


> **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)