fix(studio-server): bound preview stills and keep proxy work to the Studio's own pages (#8007)

* fix(studio-server): bound preview stills and keep proxy work to the Studio's own pages

- Queue at most 16 stills behind the 4 being made; past that, answer 503 with Retry-After.
- Refuse a still past the end of the source before starting ffmpeg (404).
- Refuse a ?hf-proxy request on a plain preview path when another site asks for it. The
  Studio's own opaque frames already load through the frame-token path, and sandboxed
  thumbnail captures now do too.

— Rames

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(studio-server): raise packed size budget for the still-queue and cross-site checks

The bounded still queue, the past-end refusal and the cross-site proxy
check add about 2.2 KB to the packed studio-server (180252 bytes in CI).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
James Russo
2026-11-17 03:09:21 +00:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 581a43bb6a
commit bffe8d5985
12 changed files with 230 additions and 19 deletions
+1 -1
View File
@@ -56,7 +56,7 @@
"unpacked": 26703858
},
"@hyperframes/studio-server": {
"packed": 178000,
"packed": 182000,
"unpacked": 690000
}
}