diff --git a/docs/operations.md b/docs/operations.md index e187fe615..63800859d 100644 --- a/docs/operations.md +++ b/docs/operations.md @@ -99,6 +99,13 @@ environment accepts only `main` and holds two secrets: Settings Read on the Gecode account, and Zone Read and Workers Routes Write on `gecode.dev`. It cannot change DNS, SSL or rules. +The Custom Domain owns the `www` DNS record, so it does not appear as an +ordinary record in the DNS list. Cloudflare refuses to attach a Custom Domain +while another record exists for the hostname, and Wrangler does not replace it +in CI. If the domain is ever detached and must be reattached, delete any `www` +record and add the domain under Workers & Pages, `gecode-website`, Domains in +the same minute: resolvers may cache the missing name for 30 minutes. + The same build can be deployed by hand from the Workers workflow (`worker=website`) to `www-staging.gecode.dev` or, with the `cloudflare-production` approval, to production. diff --git a/scripts/check-availability.mjs b/scripts/check-availability.mjs index 2d6dfc108..adc7cf25d 100644 --- a/scripts/check-availability.mjs +++ b/scripts/check-availability.mjs @@ -78,7 +78,10 @@ await check(`/news/?availability=${Date.now()}`, 200, async (response) => { await check("/download.html?availability=1", 308, (response) => { assert.equal(response.headers.get("location"), `${origin}/download/?availability=1`); }); -await check("/users-archive/index.html", 200, async (response) => { +await check("/users-archive/index.html", 307, (response) => { + assert.equal(response.headers.get("location"), "/users-archive/"); +}); +await check("/users-archive/", 200, async (response) => { assert.match(response.headers.get("content-type"), /text\/html/); assert.match((await bytes(response)).toString(), /Gecode users archive/); });