Skip to content

Move the website to Cloudflare Pages - #185

Merged
sudoHG merged 4 commits into
mainfrom
website-cloudflare-pages
Oct 13, 2026
Merged

sudoHG merged 4 commits into
mainfrom
website-cloudflare-pages

Conversation

@sudoHG

@sudoHG sudoHG commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

Refs #160.

The website now runs on Cloudflare Pages, because Cloudflare's network is more reliable than GitHub Pages for visitors in mainland China. It is live at https://askkey.sudohg.com (project askkey, Direct Upload; custom domain active; proxied CNAME to askkey.pages.dev). Cloudflare's Git integration could not be connected for this account, so deploys are manual, as described in site-src/README.md.

  • Remove .github/workflows/pages.yml. GitHub Pages is switched off for the repository, so the workflow would only fail.
  • Add site/404.html, a bilingual not-found page. Without it, Pages answers unknown paths with the English home page and status 200. Allow its Chinese in the hygiene check.
  • No picture on the site opens the long-press menu, the force-click preview or a drag copy any more; a picture inside a link still passes clicks to the link.
  • Add site-src/README.md: where the site is served and how to deploy it with Wrangler.

Checks: python3 scripts/check_hygiene.py passed. https://askkey.sudohg.com/ and /zh/ return 200 over HTTPS from Cloudflare, http:// redirects to https://, and the custom domain reads back as active.

The site moves to Cloudflare Pages, which builds site/ from main through
its own Git integration, because Cloudflare's network is more reliable
than GitHub Pages for visitors in mainland China. GitHub Pages is
switched off for the repository, so this workflow would only fail.
@sudoHG sudoHG changed the title Stop deploying the website with GitHub Pages Move the website to Cloudflare Pages Oct 13, 2026
@sudoHG
sudoHG merged commit c246742 into main Oct 13, 2026
2 checks passed
@sudoHG
sudoHG deleted the website-cloudflare-pages branch October 13, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant