Redirect brian.thompson.codes to bryan.thompson.codes #7
Loading…
Reference in a new issue
No description provided.
Delete branch "bryan/brian-redirect"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a tiny Cloudflare Worker (redirects/brian.js, wrangler.brian-redirect.toml) on the custom domain brian.thompson.codes. Every request gets a 301 to the same path and query on bryan.thompson.codes, so the common misspelling lands on the resume.
Already deployed from this branch (version afe233c4). Checked against Cloudflare's edge: https://brian.thompson.codes/some/path?x=1 returns 301 to https://bryan.thompson.codes/some/path?x=1, and http://brian.thompson.codes/ ends at a 200 on https://bryan.thompson.codes/ after two hops.
npm test passes (12 tests, two of them new for the redirect).