Flat File Layout
Root-level pages like index.html, 404.html,
style.css, and script.js.
Cloudflare Pages Static Site Starter
This starter keeps the shape simple: root-level HTML, CSS, and JavaScript,
a top-level functions/ folder for Pages Functions, and a GitHub-friendly
deployment flow that mirrors the flat structure used in spaitialintel.
What's Included
Keep the core site readable at a glance while leaving room for edge functions, legal pages, images, and future standalone report views.
Root-level pages like index.html, 404.html,
style.css, and script.js.
Add lightweight endpoints in functions/ without changing the static site architecture.
GitHub and Cloudflare Pages work cleanly when the repo root is the deployable static output.
Suggested Folders
.
|-- functions/
|-- images/
|-- legal/
|-- index.html
|-- 404.html
|-- style.css
|-- script.js
|-- _headers
|-- .dev.vars.example
`-- wrangler.toml
Keep the root focused on the primary experience. Use folders only when they group a clear content area like images, legal pages, or API logic.
Deployment
Initialize the repo, commit the scaffold, and push to your default branch.
Use no framework preset, no build command, and set the output directory to ..
Checking /api/health...