mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
15fa9babf3
* fix(routing): correct redirects in dev * simplify code * address feedback * move delay inside the function, to keep the comment in one place
315 B
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.