terraform { # Local state — terraform.tfstate is gitignored. # No remote backend needed for this project. required_providers { # Cloudflare provider for Pages and DNS. cloudflare = { source = "registry.terraform.io/cloudflare/cloudflare" version = "~> 4" } } } # Cloudflare Pages project for the edu mdbook static site. # Deployment is handled via `wrangler pages deploy` from the CI/CD pipeline or justfile. # No git source block — artifact upload model only. resource "cloudflare_pages_project" "edu" { account_id = var.cloudflare_account_id name = "vibedbooks" production_branch = "main" build_config { # mdbook build command — produces the static site in the `book/` directory. build_command = "mdbook build" destination_dir = "book" root_dir = "edu" } }