sst.config.ts 567 B

1234567891011121314151617181920212223
  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. providers: {
  10. stripe: {
  11. apiKey: process.env.STRIPE_SECRET_KEY!,
  12. },
  13. planetscale: "0.4.1",
  14. },
  15. }
  16. },
  17. async run() {
  18. await import("./infra/app.js")
  19. await import("./infra/console.js")
  20. await import("./infra/enterprise.js")
  21. },
  22. })