From cb583d7fa8d51832386506d12bc5496bb6c5a524 Mon Sep 17 00:00:00 2001 From: belminpre Date: Tue, 20 Oct 2026 10:12:48 +0200 Subject: [PATCH] fix: point sitemap and QA redirect to weirdanimals.net weirdanimals.life expired and was replaced by weirdanimals.net (Cloudflare, same backend). Update the sitemap generator BASE_URL so the generated sitemap's entries use the live domain, the QA /qa-30x redirect fixture (REDIRECT_LOCATION), and the README sitemap link. Fixes the deployed sitemap still listing dead .life URLs. Co-Authored-By: Claude Opus 4.8 --- README.md | 2 +- netlify/functions/qa-code.ts | 4 ++-- src/plugins/sitemapPlugin.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c9a34da..58d1290 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ bestiary/ ## 🗺 Sitemap The sitemap is available at: -[https://weirdanimals.life/sitemap.xml](https://weirdanimals.life/sitemap.xml) +[https://weirdanimals.net/sitemap.xml](https://weirdanimals.net/sitemap.xml) ## 🔧 Development Tips diff --git a/netlify/functions/qa-code.ts b/netlify/functions/qa-code.ts index 350c9ea..a8f7aa4 100644 --- a/netlify/functions/qa-code.ts +++ b/netlify/functions/qa-code.ts @@ -17,7 +17,7 @@ // // How the path is read: // - In Netlify Functions v2, req.url reflects the URL the client actually -// requested (e.g. https://weirdanimals.life/qa-302), even when the +// requested (e.g. https://weirdanimals.net/qa-302), even when the // function was reached via a rewrite-proxy. We parse the pathname and // match against an explicit allow-list of codes. Unknown paths return // a 404 so misconfiguration fails loud instead of silently emitting a @@ -37,7 +37,7 @@ type HtmlConfig = { type CodeConfig = RedirectConfig | HtmlConfig; -const REDIRECT_LOCATION = "https://weirdanimals.life/"; +const REDIRECT_LOCATION = "https://weirdanimals.net/"; const CODES: Record = { "301": { kind: "redirect", status: 301 }, diff --git a/src/plugins/sitemapPlugin.js b/src/plugins/sitemapPlugin.js index 46c38a8..1f20db7 100644 --- a/src/plugins/sitemapPlugin.js +++ b/src/plugins/sitemapPlugin.js @@ -1,7 +1,7 @@ import path from "path"; import fs from "fs"; -const BASE_URL = 'https://weirdanimals.life'; +const BASE_URL = 'https://weirdanimals.net'; const getJsonFiles = (dir) => { try {