0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
astro/.changeset/three-days-cough.md
Emanuele Stoppa 15fa9babf3
fix(routing): correct redirects in dev (#12169)
* fix(routing): correct redirects in dev

* simplify code

* address feedback

* move delay inside the function, to keep the comment in one place
2024-10-09 16:24:34 +01:00

315 B

astro
patch

Fixes a bug where the dev server was not providing a consistent user experience for configured redirects.

With the fix, when you configure a redirect in astro.config.mjs like this { /old: "/new" }, the dev server return an HTML response that matches the one emitted by a static build.