Repository navigation
Move the website to Cloudflare Pages - #185
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 toaskkey.pages.dev). Cloudflare's Git integration could not be connected for this account, so deploys are manual, as described insite-src/README.md..github/workflows/pages.yml. GitHub Pages is switched off for the repository, so the workflow would only fail.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.site-src/README.md: where the site is served and how to deploy it with Wrangler.Checks:
python3 scripts/check_hygiene.pypassed.https://askkey.sudohg.com/and/zh/return 200 over HTTPS from Cloudflare,http://redirects tohttps://, and the custom domain reads back as active.