You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
855 B
HCL
28 lines
855 B
HCL
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"
|
|
}
|
|
}
|