Static site deployed to Cloudflare Pages from main.
npm run serve # build + preview at http://localhost:8080
npm run build # regenerate derived files
npm run validate # build + consistency checks
./deploy.sh "message" # bump version, validate, push to GitHub| Change | File |
|---|---|
| Email, links, stats, GA ID | scripts/site.config.js |
| FAQ (EN + ES) | content/faq.json |
| Case study content | content/case-studies/*.json |
| Visible copy (nav, hero, services…) | translations.js |
| Styles | style.css |
| Behavior | script.js |
After editing, run npm run build (or npm run serve).
scripts/build.mjs generates:
site-config.js— runtime config for the browserllms.txt,sitemap.xmlcase-i18n.jsandcase-studies/*.html- FAQ schema + FAQ items in
translations.js - Cache-busted asset URLs (
asset-version.txt)
content/ # source data (faq, case studies)
scripts/ # site.config.js, build, validate, templates
index.html # main page (hand-edited structure)
translations.js # i18n copy (FAQ items auto-synced)
Push to main ? GitHub Actions ? Cloudflare Pages (danieloa project).
Do not commit .wrangler/ (local Cloudflare CLI cache).