This site is designed to be a static website, making it perfect for Cloudflare Pages.
- Log in to the Cloudflare Dashboard.
- Go to Workers & Pages -> Create Application -> Pages.
- Click Connect to Git and select your
githublogrepository. - Build Settings (Crucial Step):
- Framework Preset: None (Static HTML)
- Build Command:
exit 0(or leave completely empty) - Build Output Directory:
/(root)- Note: Do NOT enter
npx wrangler deployhere. That command is for Workers.
- Note: Do NOT enter
- Click Save and Deploy.
Cloudflare will automatically deploy your site whenever you push changes to GitHub.
If you have wrangler installed:
# Login to Cloudflare
npx wrangler login
# Deploy current directory
npx wrangler pages deploy .- config.json: Ensure your domain is listed in
config.jsonso the app knows which GitHub repo to load data from.- Example: If your Cloudflare domain is
githublog.pages.dev, add it toconfig.json.
- Example: If your Cloudflare domain is
"githublog.pages.dev": {
"owner": "taontech",
"repo": "githublog",
"clientId": "YOUR_CLIENT_ID",
"clientSecret": "YOUR_CLIENT_SECRET",
"theme": "default"
}- OAuth: Cloudflare Pages domains support HTTPS by default, which is required for GitHub OAuth to work securely.