Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 4 additions & 1 deletion scripts/check-availability.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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/);
});
Expand Down
Loading