From 7524e5f4955267efa9882e2dd0f485c363ae49e4 Mon Sep 17 00:00:00 2001 From: Dax Date: Mon, 9 Nov 2026 13:59:31 -0500 Subject: [PATCH] chore(infra): untrack zen buckets and trust dns now that they are retained (#62940) --- infra/console.ts | 19 ------------------- infra/stage.ts | 29 ----------------------------- sst-env.d.ts | 2 -- sst.config.ts | 1 - 4 files changed, 51 deletions(-) delete mode 100644 infra/console.ts diff --git a/infra/console.ts b/infra/console.ts deleted file mode 100644 index 68624834b66..00000000000 --- a/infra/console.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Archived Zen request/response dumps (writer removed May 2026). Nothing reads or writes them. -// Retained on delete so a follow-up can drop them from code without deleting the buckets. -new sst.cloudflare.Bucket("ZenData", { - transform: { - bucket: (_, opts) => { - opts.retainOnDelete = true - }, - }, -}) -new sst.cloudflare.Bucket("ZenDataNew", { - transform: { - bucket: (_, opts) => { - opts.retainOnDelete = true - }, - }, -}) - -// Keep this file a module so sst.config.ts can import it. -export {} diff --git a/infra/stage.ts b/infra/stage.ts index 5ff0d7daa38..885c880ce26 100644 --- a/infra/stage.ts +++ b/infra/stage.ts @@ -7,32 +7,3 @@ export const domain = (() => { export const zoneID = "430ba34c138cfb5360826c4909f99be8" export const awsStage = $app.stage === "production" ? "production" : "dev" export const deployStats = $app.stage === awsStage - -if ($app.stage === "production") { - // Retained on delete so a follow-up can untrack it without deleting the live record. - new cloudflare.DnsRecord( - "TrustCenter", - { - zoneId: zoneID, - name: "trust.opencode.ai", - type: "CNAME", - content: "3a69a5bb27875189.vercel-dns-016.com", - proxied: false, - ttl: 60, - }, - { retainOnDelete: true }, - ) - - // Retained on delete so a follow-up can untrack it without deleting the live record. - new cloudflare.DnsRecord( - "TrustCenterVerification", - { - zoneId: zoneID, - name: "opencode.ai", - type: "TXT", - content: "compai-domain-verification=org_6993a99c6200a2d642bb115d", - ttl: 60, - }, - { retainOnDelete: true }, - ) -} diff --git a/sst-env.d.ts b/sst-env.d.ts index 57690e4b5a1..b78630f2f94 100644 --- a/sst-env.d.ts +++ b/sst-env.d.ts @@ -28,8 +28,6 @@ declare module "sst" { "type": "sst.cloudflare.StaticSite" "url": string } - "ZenData": import("@cloudflare/workers-types").R2Bucket - "ZenDataNew": import("@cloudflare/workers-types").R2Bucket } } diff --git a/sst.config.ts b/sst.config.ts index de02af2001b..a713de45d5b 100644 --- a/sst.config.ts +++ b/sst.config.ts @@ -26,7 +26,6 @@ export default $config({ const stage = await import("./infra/stage.js") await import("./infra/app.js") const stats = stage.deployStats ? await import("./infra/stats.js") : undefined - await import("./infra/console.js") return { ...(stats ? { StatsUrl: stats.publicUrl } : {}),