mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-29 14:31:56 +00:00
18 lines
477 B
TypeScript
18 lines
477 B
TypeScript
export function createWebApp(domain: string) {
|
|
return new sst.cloudflare.StaticSite("WebApp", {
|
|
domain,
|
|
path: "packages/app",
|
|
environment:
|
|
$app.stage === "beta"
|
|
? {
|
|
OPENCODE_CHANNEL: "beta",
|
|
VITE_SENTRY_ENVIRONMENT: "beta",
|
|
}
|
|
: undefined,
|
|
build: {
|
|
// Preserve Sentry credentials and run source-map uploads on every deployment.
|
|
command: "bun run build",
|
|
output: "./dist",
|
|
},
|
|
})
|
|
}
|