ARCHITECTURE
Architecture
This repository is the archetype for a Hugo static website served from
Bunny.net. Hugo source lives in www/, builds into public/, and is published
to infrastructure defined by one thin Terraform root per environment:
workspaces/site for a developer’s own sandbox copy, and env/prod/release
for production.
Each root composes the same published module — the Bunny Storage zone, pull zone, DNS record, and TLS hostname — at the same pinned version. The roots hold nothing but a backend, a domain, and credentials, so the pattern lives in exactly one place and every environment is the same deployment. The one piece of AWS left is the Terraform state backend itself; the site content, DNS record, and CDN are entirely Bunny’s.
Each root’s backend key is derived from the repository’s own forge identity at
deploy time (scripts/derive-repo-identity.sh), not typed in by hand, so a
repository made from this template never shares a state key with the template
or with another repository made from it.
The repository is a self-contained starter — it builds and deploys as-is. There are no generators, token-substitution steps, init scripts, or regeneration workflows. Every committed file is the real file.
Repository Identity and Scope
This repository hosts one static website. It does not host an API, a database-backed service, an SPA frontend, an OIDC identity provider, or a local development runtime stack. The reference implementation from which this starter was extracted includes all of those subsystems; this repository deliberately omits them.
The repository is a starter, not a framework. It is meant to be cloned, customized, and deployed — not installed as a dependency, rendered from a template, or kept in sync with an upstream generator.