You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Two builds of the same app give different server output #4972
nitro build doesn't give the same output twice. I built the same app 3 times on main and got 3 different .output/server folders. The app has 150 files in public/. I ignored file mtimes when I compared the folders.
To reproduce, add 150 files to public/, run nitro build 3 times, and compare .output/server after each build. Nitro main at 3f1c8af, Node 24.21.0, Linux.
The cause is in #nitro/virtual/public-assets-data. Nitro reads the public files 25 at a time, and it adds each file to the list when its read finishes. The reads finish in a different order on each build. So the list order changes, and the server chunk changes with it.
Sorting the list by path fixes it. With the sort, 3 builds gave the same output, and every route still returns the same response.
Activity
pi0 commentedon Oct 30, 2026
PR welcome!