sst.config.ts 441 B

12345678910111213141516171819
  1. /// <reference path="./.sst/platform/config.d.ts" />
  2. export default $config({
  3. app(input) {
  4. return {
  5. name: "opencode",
  6. removal: input?.stage === "production" ? "retain" : "remove",
  7. protect: ["production"].includes(input?.stage),
  8. home: "cloudflare",
  9. }
  10. },
  11. async run() {
  12. const { api, gateway } = await import("./infra/app.js")
  13. return {
  14. api: api.url,
  15. gateway: gateway.url,
  16. }
  17. },
  18. })