|
1 | | -import { domain, zoneID } from "./stage" |
2 | | - |
3 | | -// opencode.ai and dev.opencode.ai belong to the site Worker (services/site). Their custom domain used to belong to |
4 | | -// the old Console Worker and was moved to the site Worker in place, keeping its ID (Cloudflare won't let a placeholder |
5 | | -// DNS record sit beside a Worker-managed one, and deleting the record first would leave the apex without DNS). |
6 | | -// SiteDomain adopts that resource so SST never deletes the live hostname: it is retained on delete, and its inputs are |
7 | | -// ignored so it is never updated or replaced. Its state still records the old Console service; Cloudflare has the |
8 | | -// site Worker. Keep it declared: dropping it only forgets it (retainOnDelete), but keeping it is a guaranteed no-op. |
9 | | -if ($app.stage === "production" || $app.stage === "dev") { |
10 | | - new cloudflare.WorkersCustomDomain( |
11 | | - "SiteDomain", |
12 | | - { |
13 | | - accountId: "15d29c8639fd3733b1b5486a2acfd968", |
14 | | - hostname: domain, |
15 | | - service: `opencode-site-${$app.stage}`, |
16 | | - zoneId: zoneID, |
17 | | - environment: "production", |
| 1 | +// Archived Zen request/response dumps (writer removed May 2026). Nothing reads or writes them. |
| 2 | +// Retained on delete so a follow-up can drop them from code without deleting the buckets. |
| 3 | +new sst.cloudflare.Bucket("ZenData", { |
| 4 | + transform: { |
| 5 | + bucket: (_, opts) => { |
| 6 | + opts.retainOnDelete = true |
18 | 7 | }, |
19 | | - { |
20 | | - aliases: [ |
21 | | - `urn:pulumi:${$app.stage}::${$app.name}::sst:cloudflare:SolidStart$sst:cloudflare:Worker$cloudflare:index/workersCustomDomain:WorkersCustomDomain::ConsoleWorkerDomain`, |
22 | | - ], |
23 | | - retainOnDelete: true, |
24 | | - ignoreChanges: ["accountId", "hostname", "service", "zoneId", "environment"], |
| 8 | + }, |
| 9 | +}) |
| 10 | +new sst.cloudflare.Bucket("ZenDataNew", { |
| 11 | + transform: { |
| 12 | + bucket: (_, opts) => { |
| 13 | + opts.retainOnDelete = true |
25 | 14 | }, |
26 | | - ) |
27 | | -} |
| 15 | + }, |
| 16 | +}) |
28 | 17 |
|
29 | | -// Archived Zen request/response dumps (writer removed May 2026). Retained on purpose; nothing reads or writes them. |
30 | | -new sst.cloudflare.Bucket("ZenData") |
31 | | -new sst.cloudflare.Bucket("ZenDataNew") |
| 18 | +// Keep this file a module so sst.config.ts can import it. |
| 19 | +export {} |
0 commit comments