mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
d07d2f7ac9
* 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>
368 B
368 B
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.