mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-20 18:57:17 +03:00
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:
+3
-1
@@ -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:
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user