fix(site): keep the bare host as a custom domain

This commit is contained in:
Dax Raad
2026-11-10 23:23:39 -05:00
Unverified
parent 4d49c73e02
commit 791a2c489e
+4 -2
View File
@@ -43,8 +43,10 @@ export default defineConfig(({ mode }) => {
triggers.fetch({ pattern: `${host}/*`, zone: "opencode.ai" }),
]
: [],
// The old docs host. The Worker sends its URLs to the same path on the V1 docs at /v1/docs.
domains: [`docs.${host}`],
// The bare host is a custom domain (it also supplies the DNS record), and cf detaches any domain
// not listed here. docs.<host> is the old docs host: the Worker sends its URLs to the same path
// on the V1 docs at /v1/docs.
domains: [host, `docs.${host}`],
workersDev: false,
previewUrls: false,
// Workers Logs: requests, errors and console output, searchable in the Cloudflare dashboard.