-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Astro v6 Regression - 404s on pages created while dev server is running #15909
Description
Astro Info
Astro v6.0.4
Node v22.12.0
System Windows (x64)
Package Manager npm
Output static
Adapter none
Integrations none
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Unfortunately I can not reproduce this in Stackblitz so it could be a Windows or local dev specific issue but I did record a video showing the problem with fresh Astro installs, hopefully someone can reproduce to verify this isn't something specific with my own setup:
https://www.loom.com/share/ba4826966bfb415f9849adcbf12e7ff9
As you can see in the video, when we create a new project on Astro 5.18.1, start up the dev server, and create a page, we can navigate to it no problem.
When we create a new project with Astro 6.0.4, start up the dev server, and create a page, when we navigate to it, it 404s for some reason.
Restarting the dev server makes the page available, but this is required for any new pages created while the dev server is running.
HMR still works fine in 6.0.4 so it doesn't seem to be that specifically.
This happens regardless of the install/initialization process. Using npm create @astro/latest results in the same behavior. I mirrored install/setup processes in the video just to showcase the only difference being the version of Astro installed.
What's the expected result?
On Windows, when we create new pages in Astro 6.x+ projects while the dev server is running, they should not 404 when we navigate to them.
This was working fine as of Astro 5.18.1 as illustrated in the video.
Link to Minimal Reproducible Example
https://www.loom.com/share/ba4826966bfb415f9849adcbf12e7ff9
Participation
- I am willing to submit a pull request for this issue.