fix(infra): deploy the beta web app with Workers Static Assets

StaticSite stores assets base64-encoded in KV, which pushed the 20 MB Word preview wasm past KV's 25 MiB value limit.
This commit is contained in:
LukeParkerDev
2026-10-16 10:27:23 +10:00
Unverified
parent 699e74ae86
commit f834dd8ee3
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -1,5 +1,7 @@
export function createWebApp(domain: string) {
return new sst.cloudflare.StaticSite("WebApp", {
// Workers Static Assets uploads files as-is, up to 25 MiB each. StaticSite stored them base64-encoded in KV, which
// pushed the 20 MB Word preview engine past KV's 25 MiB value limit.
return new sst.cloudflare.StaticSiteV2("WebApp", {
domain,
path: "packages/app",
environment:
+1 -1
View File
@@ -78,7 +78,7 @@ The `deploy` GitHub Actions workflow uses SST to deploy the web app to `beta.ope
force-push it. Each push also runs the `publish` workflow, which ships the same commit as the OpenCode Beta desktop app
(see `packages/desktop/README.md`).
The beta SST stage deploys only the web app, using the `WebApp` StaticSite definition in `infra/webapp.ts`. It sets
The beta SST stage deploys only the web app, using the `WebApp` StaticSiteV2 definition in `infra/webapp.ts`. It sets
the build channel and Sentry environment to `beta` without deploying the API, console, database, or billing
infrastructure.