0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-24 22:46:02 -05:00
astro/.changeset/nervous-pens-retire.md
Emanuele Stoppa 35ef53c089
fix: bubble up errors in rewrites (#11136)
* fix: bubble up errors in rewrites

* docs

* remove commented code

* changesets

* fix string interpolation
2024-06-05 13:09:51 +01:00

332 B

astro
patch

It's not possible anymore to use Astro.rewrite("/404") inside static pages. This isn't counterproductive because Astro will end-up emitting a page that contains the HTML of 404 error page.

It's still possible to use Astro.rewrite("/404") inside on-demand pages, or pages that opt-out from prerendering.