mirror of
https://github.com/Heretek-AI/opencode.git
synced 2026-11-09 10:29:42 -10:00
+26


![opencode-agent[bot]](/assets/img/avatar_default.png)





![opencode-agent[bot]](/assets/img/avatar_default.png)
opencode-agent[bot]
opencode
Aiden Cline
Aiden Cline
Luke Parker
Adam
opencode-agent[bot]
Brendan Allan
Victor Navarro
Aarav Sareen
Frank
Dax Raad
Dax
Nabs
usrnk1
Brendan Allan
Vladimir Glafirov
AidenGeunGeun
Mark
Aiden Cline
David Hill
Jay
Jay
BB84
Dustin Deus
Jack
Sebastian
Jérôme Benoit
Test User
Simon Klee
Rahul A Mistry
Qiping Li
liqiping
OpeOginni
Matthias Reso
tobwen
4c9a4309ce
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]>
41 lines
1.1 KiB
TypeScript
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`
|
|
})()
|