Site: itblogpros.com
Hosting: Cloudflare Pages
Source: GitHub Repository
Before pushing to GitHub, verify locally:
npx @11ty/eleventy --serve# Check which branch you're on
git branch
# The branch with * is your current branch
# Make sure it matches Cloudflare's "Production branch" setting
Expected: You should be on main or master (whichever Cloudflare is watching)
Verify these settings:
| Setting | Correct Value |
|---|---|
| Production branch | main or master (must match your git branch) |
| Build command | npx @11ty/eleventy |
| Build output directory | _site |
| Root directory | (blank) or / |
| Node version | 18 or higher |
If any are wrong: Update them → Save → Retry deployment
What to look for:
✅ Success (green) = Site deployed successfully
❌ Failed (red) = Build failed, click to see logs
🟡 Building (yellow) = Wait a few minutes
If Failed:
Module not found → Missing package in package.jsonENOENT → Missing file or wrong pathYAML Exception → Invalid front matter syntaxIf everything looks correct but site isn't updating:
Or force from Git:
# Make a tiny change
echo " " >> README.md
# Commit and push
git add .
git commit -m "Force rebuild"
git push origin main # or master
Cloudflare caches EVERYTHING aggressively:
Then test:
Ctrl + Shift + RAfter successful deployment, check:
https://itblogpros.com/2025/10/02/your-article-slug/
If 404 Not Found:
_site folder locallyIf shows old content:
Problem: Pushing to main but Cloudflare watches master (or vice versa)
Fix:
git branchgit checkout master # or main
git push origin master # or main
Problem: Article not in collections (missing "post" tag)
Fix:
tags:
- post # ← MUST BE HERE!
- wifi
- router
Problem: Cloudflare cache
Fix:
Ctrl + Shift + RProblem: Missing npm package
Fix:
package.json dependenciespackage-lock.json:git add package-lock.json
git commit -m "Update package lock"
git push
npm ci which needs package-lock.jsonProblem: Case-sensitive file paths or Node version difference
Fix:
NODE_VERSION = 18_includes/layout.njk not _includes/Layout.njk/images/photo.jpg not /Images/photo.jpgEvery time you publish a new article:
npx @11ty/eleventy --servegit add .
git commit -m "Add new article: [title]"
git push origin main # or master
Article doesn't appear on live site
│
├─ Does it build locally? (npx @11ty/eleventy --serve)
│ ├─ NO → Fix local build first, then retry
│ └─ YES → Continue
│
├─ Which branch are you on? (git branch)
│ └─ Does it match Cloudflare "Production branch"?
│ ├─ NO → Switch branch or update Cloudflare setting
│ └─ YES → Continue
│
├─ Check Cloudflare deployment status
│ ├─ Failed → Read logs, fix error, retry
│ ├─ Success → Continue
│ └─ Building → Wait 2-5 minutes
│
├─ Purge Cloudflare cache
│ └─ Hard refresh browser (Ctrl + Shift + R)
│
└─ Still not working?
└─ Check front matter has "post" tag
└─ Check date is not in future
└─ Verify build output directory is "_site"
If you've tried everything:
Share these details:
git branchCheck these URLs:
Verify basics:
Tip 1: Use Cloudflare Deploy Preview Every push creates a preview URL - check it before going live:
Tip 2: Set Up Build Notifications Get notified when deployments succeed/fail:
Tip 3: Enable Branch Deployments Test changes on a branch before merging to main:
Tip 4: Check Build Logs Regularly Even successful builds might have warnings:
Cloudflare Dashboard: https://dash.cloudflare.com
itblogpros Deployments: Workers & Pages → itblogpros → Deployments
Build Settings: Workers & Pages → itblogpros → Settings
Cache Purge: Caching → Configuration → Purge Everything
Local Test: npx @11ty/eleventy --serve
Git Branch: git branch
Git Push: git push origin main (or master)
Remember: 95% of deployment issues are:
Good luck! 🚀