Files
hyperframes/packages/studio-server
Miguel Ángel f03233ab4d fix(studio-server): previewing a page with thousands of media files no longer stalls the app (#8505)
* fix(studio-server): previewing a page with thousands of media files no longer stalls the app

Building a preview recorded each file the build read, and each file the
page names, by walking its path with blocking link reads, one file at a
time. A page naming 20,000 media files held the server's event loop for
over a second, and the app froze while the preview loaded.

The build now collects those paths and records them off the event loop
in one batch per step, reading each shared folder once per batch.

* fix(studio-server): a preview still loads when its project folder cannot be resolved

Recording a build's reads resolved the project folder with a reader that
fails on a folder it cannot resolve (a link loop, no permission), so a
finished bundle turned into a failed build and the sub-composition route
answered a server error. The folder now resolves the way the per-read
recorder resolves it, and recording never fails its caller.
2026-11-22 14:23:33 +00:00
..
2026-11-22 13:56:25 +00:00