Public deploy checklist
中文:Codex Sites 适合内部预览;公开工具站要走真实域名、仓库、Pages、GSC 和回滚链路。English: Public utility sites need a controlled repo, domain, Pages deployment and verification loop.
Repo
GitHub private repo name equals the domain. Main stays clean; feature work happens in a worktree branch.
git status cleanCloudflare zone
Create or reuse the zone, update registrar nameservers, and wait until the public NS chain points to Cloudflare.
DNS activePages project
Bind GitHub to Cloudflare Pages with production branch main, static output, and automatic deployments on push.
auto deployCustom domains
Bind apex and www, verify HTTPS, and do not call launch complete before the certificate and routing work.
SSL readySearch
Add GSC domain property, write the TXT record, submit sitemap.xml, and keep robots.txt consistent.
GSCRollback
Use small commits for content, config, deploy and verify steps so a bad change can be reverted cleanly.
reversibleCommand 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.