Skip to content

Commit 791a2c4

Browse files
committed
fix(site): keep the bare host as a custom domain
1 parent 4d49c73 commit 791a2c4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎services/site/cloudflare.config.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ export default defineConfig(({ mode }) => {
4343
triggers.fetch({ pattern: `${host}/*`, zone: "opencode.ai" }),
4444
]
4545
: [],
46-
// The old docs host. The Worker sends its URLs to the same path on the V1 docs at /v1/docs.
47-
domains: [`docs.${host}`],
46+
// The bare host is a custom domain (it also supplies the DNS record), and cf detaches any domain
47+
// not listed here. docs.<host> is the old docs host: the Worker sends its URLs to the same path
48+
// on the V1 docs at /v1/docs.
49+
domains: [host, `docs.${host}`],
4850
workersDev: false,
4951
previewUrls: false,
5052
// Workers Logs: requests, errors and console output, searchable in the Cloudflare dashboard.

0 commit comments

Comments
 (0)