mirror of
https://github.com/withastro/astro.git
synced 2025-02-10 22:38:53 -05:00
* wip * catch error in route.ts * catch error in route.ts * chore: tidy up error cases * log the original error * rebase * chore: reduce the scope of the 500 handling * we should not have a default 500 * remove props * remove unsure function, not needed * Update packages/astro/src/core/routing/astro-designed-error-pages.ts Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> * Update packages/astro/src/core/constants.ts Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> * changeset * relax the assertion * Update packages/astro/src/vite-plugin-astro-server/route.ts Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> * relax the assertion --------- Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
9 lines
368 B
Markdown
9 lines
368 B
Markdown
---
|
|
'astro': patch
|
|
---
|
|
|
|
Improves the developer experience of the custom `500.astro` page in development mode.
|
|
|
|
Before, in development, an error thrown during the rendering phase would display the default error overlay, even when users had the `500.astro` page.
|
|
|
|
Now, the development server will display the `500.astro` and the original error is logged in the console.
|