Skip to content

Commit 42b54df

Browse files
astrobot-houstondelucissarah11918
authored
ci: update error reference docs (withastro#12422)
Co-authored-by: delucis <[email protected]> Co-authored-by: Sarah Rainsberger <[email protected]>
1 parent bacd989 commit 42b54df

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

src/content/docs/en/reference/error-reference.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ The following reference is a complete list of the errors you may encounter while
4848
- [**UnsupportedImageFormat**](/en/reference/errors/unsupported-image-format/)<br/>Unsupported image format
4949
- [**UnsupportedImageConversion**](/en/reference/errors/unsupported-image-conversion/)<br/>Unsupported image conversion
5050
- [**PrerenderDynamicEndpointPathCollide**](/en/reference/errors/prerender-dynamic-endpoint-path-collide/)<br/>Prerendered dynamic endpoint has path collision.
51+
- [**PrerenderRouteConflict**](/en/reference/errors/prerender-route-conflict/)<br/>Prerendered route generates the same path as another route.
5152
- [**ExpectedImage**](/en/reference/errors/expected-image/)<br/>Expected src to be an image.
5253
- [**ExpectedImageOptions**](/en/reference/errors/expected-image-options/)<br/>Expected image options.
5354
- [**ExpectedNotESMImage**](/en/reference/errors/expected-not-esmimage/)<br/>Expected image options, not an ESM-imported image.

src/content/docs/en/reference/errors/font-family-not-found.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import DontEditWarning from '~/components/DontEditWarning.astro'
1313
<DontEditWarning />
1414

1515

16-
> No data was found for the family passed to the Font component.
16+
> No data was found for the `cssVariable` passed to the `<Font />` component or to the `getFontData()` function.
1717
1818
## What went wrong?
1919
Font family not found
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
# NOTE: This file is auto-generated from 'scripts/error-docgen.mjs'
3+
# Do not make edits to it directly, they will be overwritten.
4+
# Instead, change this file: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
5+
# Translators, please remove this note and the <DontEditWarning/> component.
6+
7+
title: Prerendered route generates the same path as another route.
8+
i18nReady: true
9+
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
10+
---
11+
import DontEditWarning from '~/components/DontEditWarning.astro'
12+
13+
<DontEditWarning />
14+
15+
16+
> **PrerenderRouteConflict**: Could not render `PATHNAME` from route `THIS_ROUTE` as it conflicts with higher priority route `WINNING_ROUTE`.
17+
18+
## What went wrong?
19+
Two prerendered routes generate the same path, resulting in a collision.
20+
A static path can only be generated by one route.
21+
22+
**See Also:**
23+
- [`getStaticPaths()`](/en/reference/routing-reference/#getstaticpaths)
24+
- [`params`](/en/reference/api-reference/#params)
25+
26+

0 commit comments

Comments
 (0)