From f834dd8ee316f6dfa6b666fb1bc71f63bde14d30 Mon Sep 17 00:00:00 2001 From: LukeParkerDev <10430890+Hona@users.noreply.github.com> Date: Fri, 16 Oct 2026 10:27:23 +1000 Subject: [PATCH] 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. --- infra/webapp.ts | 4 +++- packages/app/README.md | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/infra/webapp.ts b/infra/webapp.ts index 01001da851d..ed0ef7914f1 100644 --- a/infra/webapp.ts +++ b/infra/webapp.ts @@ -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: diff --git a/packages/app/README.md b/packages/app/README.md index fb19e33408c..3e10fc3893d 100644 --- a/packages/app/README.md +++ b/packages/app/README.md @@ -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.