diff --git a/README.md b/README.md index 8884305..338efdc 100644 --- a/README.md +++ b/README.md @@ -52,4 +52,4 @@ npm test The production build writes `public/` and builds the search index. `npm test` checks the built site: internal links and fragments resolve, every image exists and has alt text, every page has one title and one H1 and is not empty, canonical addresses and the robots policy match the build, no URL carries a token or other credential, both language search indexes are present, the sitemap index covers both languages, and every English page with a `translationKey` has a Spanish page or is listed in `data/translations_pending.json`. Results are written to the ignored `reports/` directory. -The workflow in `.github/workflows/site.yml` builds and tests every pull request. On a push to `main`, after the checks pass, it deploys `public/` to Cloudflare Workers as static assets with Wrangler, using `wrangler.jsonc`, which also sets the custom domain `captua.org`. The deploy reads two repository secrets, `CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID`. +The workflow in `.github/workflows/site.yml` builds and tests every pull request. On a push to `main`, after the checks pass, it deploys `public/` to Cloudflare Workers as static assets with Wrangler, using `wrangler.jsonc`, which also sets the custom domains `captua.org` and `www.captua.org`. Every page names `https://captua.org/` as its canonical address. The deploy reads two repository secrets, `CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID`. diff --git a/wrangler.jsonc b/wrangler.jsonc index b5a5ca4..e297d92 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -8,6 +8,7 @@ "not_found_handling": "404-page" }, "routes": [ - { "pattern": "captua.org", "custom_domain": true } + { "pattern": "captua.org", "custom_domain": true }, + { "pattern": "www.captua.org", "custom_domain": true } ] }