mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -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
7 lines
315 B
Markdown
7 lines
315 B
Markdown
---
|
|
'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.
|