中文 / English

Public deploy checklist

中文:Codex Sites 适合内部预览;公开工具站要走真实域名、仓库、Pages、GSC 和回滚链路。English: Public utility sites need a controlled repo, domain, Pages deployment and verification loop.

1

Repo

GitHub private repo name equals the domain. Main stays clean; feature work happens in a worktree branch.

git status clean
2

Cloudflare zone

Create or reuse the zone, update registrar nameservers, and wait until the public NS chain points to Cloudflare.

DNS active
3

Pages project

Bind GitHub to Cloudflare Pages with production branch main, static output, and automatic deployments on push.

auto deploy
4

Custom domains

Bind apex and www, verify HTTPS, and do not call launch complete before the certificate and routing work.

SSL ready
5

Search

Add GSC domain property, write the TXT record, submit sitemap.xml, and keep robots.txt consistent.

GSC
6

Rollback

Use small commits for content, config, deploy and verify steps so a bad change can be reverted cleanly.

reversible

Command shape

中文:本站源码是根目录 HTML,部署前用 build 脚本导出干净的 dist。English: Source HTML lives at the root; deployment uses the build script to publish only the curated dist directory.

gh repo create codexsites.org --private --source . --remote origin --push
npm run build
wrangler pages project create codexsites-org --production-branch main
wrangler pages deploy dist --project-name codexsites-org
python3 path/to/domain-cloudflare-gsc/run.py --option 3 --domain codexsites.org --project . --yes

中文:把 path/to/domain-cloudflare-gsc/run.py 换成你自己的域名、Cloudflare、GSC 自动化脚本路径。English: Replace path/to/domain-cloudflare-gsc/run.py with your own domain, Cloudflare and GSC automation script path.