sst.config.ts 738 B

12345678910111213141516171819202122232425262728
  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. random: "4.19.2",
  14. planetscale: "0.4.1",
  15. honeycomb: "0.49.0",
  16. },
  17. }
  18. },
  19. async run() {
  20. await import("./infra/app.js")
  21. await import("./infra/console.js")
  22. await import("./infra/enterprise.js")
  23. if ($app.stage === "production" || $app.stage === "vimtor") {
  24. await import("./infra/monitoring.js")
  25. }
  26. },
  27. })