mirror of
https://github.com/anomalyco/opencode.git
synced 2026-10-22 23:49:55 +00:00
StaticSite stores assets base64-encoded in KV, which pushed the 20 MB Word preview wasm past KV's 25 MiB value limit.
21 lines
716 B
TypeScript
21 lines
716 B
TypeScript
export function createWebApp(domain: string) {
|
|
// 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:
|
|
$app.stage === "beta"
|
|
? {
|
|
OPENCODE_CHANNEL: "beta",
|
|
VITE_OPENCODE_SERVER_MODE: "none",
|
|
VITE_SENTRY_ENVIRONMENT: "beta",
|
|
}
|
|
: undefined,
|
|
build: {
|
|
// Preserve Sentry credentials and run source-map uploads on every deployment.
|
|
command: "bun run build",
|
|
output: "./dist",
|
|
},
|
|
})
|
|
}
|