0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
astro/.changeset/olive-feet-eat.md
Emanuele Stoppa d07d2f7ac9
fix: better DX for 500.astro in local development (#11244)
* 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>
2024-06-13 10:41:01 +01:00

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.