mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-17 05:26:47 +03:00
chore(infra): untrack zen buckets and trust dns now that they are retained (#62940)
This commit is contained in:
@@ -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 {}
|
||||
@@ -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 },
|
||||
)
|
||||
}
|
||||
|
||||
Vendored
-2
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 } : {}),
|
||||
|
||||
Reference in New Issue
Block a user