Files
opencode/infra/stage.ts
+26 4c9a4309ce chore: merge dev into v2 (#37996)
Co-authored-by: opencode <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: Luke Parker <[email protected]>
Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Adam <[email protected]>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Brendan Allan <[email protected]>
Co-authored-by: Victor Navarro <[email protected]>
Co-authored-by: Aarav Sareen <[email protected]>
Co-authored-by: Frank <[email protected]>
Co-authored-by: Dax Raad <[email protected]>
Co-authored-by: Dax <[email protected]>
Co-authored-by: Nabs <[email protected]>
Co-authored-by: usrnk1 <[email protected]>
Co-authored-by: Brendan Allan <[email protected]>
Co-authored-by: Vladimir Glafirov <[email protected]>
Co-authored-by: AidenGeunGeun <[email protected]>
Co-authored-by: Mark <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: David Hill <[email protected]>
Co-authored-by: Jay <[email protected]>
Co-authored-by: Jay <[email protected]>
Co-authored-by: BB84 <[email protected]>
Co-authored-by: Dustin Deus <[email protected]>
Co-authored-by: Jack <[email protected]>
Co-authored-by: Sebastian <[email protected]>
Co-authored-by: Jérôme Benoit <[email protected]>
Co-authored-by: Test User <[email protected]>
Co-authored-by: Simon Klee <[email protected]>
Co-authored-by: Rahul A Mistry <[email protected]>
Co-authored-by: Qiping Li <[email protected]>
Co-authored-by: liqiping <[email protected]>
Co-authored-by: OpeOginni <[email protected]>
Co-authored-by: Matthias Reso <[email protected]>
Co-authored-by: tobwen <[email protected]>
2026-07-20 15:20:59 -05:00

41 lines
1.1 KiB
TypeScript

export const domain = (() => {
if ($app.stage === "production") return "opencode.ai"
if ($app.stage === "dev") return "dev.opencode.ai"
return `${$app.stage}.dev.opencode.ai`
})()
export const zoneID = "430ba34c138cfb5360826c4909f99be8"
export const awsStage = $app.stage === "production" ? "production" : "dev"
export const deployAws = $app.stage === awsStage
if ($app.stage === "production") {
new cloudflare.DnsRecord("TrustCenter", {
zoneId: zoneID,
name: "trust.opencode.ai",
type: "CNAME",
content: "3a69a5bb27875189.vercel-dns-016.com",
proxied: false,
ttl: 60,
})
new cloudflare.DnsRecord("TrustCenterVerification", {
zoneId: zoneID,
name: "opencode.ai",
type: "TXT",
content: "compai-domain-verification=org_6993a99c6200a2d642bb115d",
ttl: 60,
})
}
new cloudflare.RegionalHostname("RegionalHostname", {
hostname: domain,
regionKey: "us",
zoneId: zoneID,
})
export const shortDomain = (() => {
if ($app.stage === "production") return "opncd.ai"
if ($app.stage === "dev") return "dev.opncd.ai"
return `${$app.stage}.dev.opncd.ai`
})()