Add hosted Studio template distribution (#139)

This commit is contained in:
dukedotdev
2026-10-21 17:32:56 -04:00
committed by GitHub
parent ed45f38137
commit a17183f15c
5 changed files with 365 additions and 0 deletions
+16
View File
@@ -50,6 +50,22 @@ just migrate -F studio # remote
just migrate -F studio -- --local # dev db
```
## Launcher template distribution
Set `STUDIO_DISTRIBUTION_MANIFEST` to an R2 catalog key to enable the optional
PatchKit-compatible `/1/apps/:secret/*` routes. The catalog and ZIP parts are
generated by `studio-patch-2026/build_distribution.py`; upload all parts through
the existing CDN before publishing the catalog. No template bytes or operator
configuration belong in this repository.
The catalog names the template application's SHA-256 identifier, latest release,
HTTPS multipart content URL, file hashes, and download-chunk hashes. Optional
legacy summaries supply comparison hashes without making old templates
downloadable. The application identifier scopes requests; it is not an access
credential. Missing or disabled catalogs return 404. Invalid catalogs or catalogs
larger than 8 MiB return 503; responses use `Cache-Control: no-store` so a corrected
publication can be retried immediately.
## Editor build limits
`GET /cloud-builds/get-rate-limit-config` returns the editor's