The problem
The first version of the site was a single static page with a form that only prepared a WhatsApp message. The studio needed a multi-page site with a real enquiry channel and production-grade security, without any monthly hosting cost.
The solution
- A statically exported Next.js site served from Cloudflare Workers Static Assets, so pages cost nothing to serve.
- One Cloudflare Worker that runs only for enquiries: origin check, schema validation, honeypot, time trap, Turnstile verification, then an email to a single verified inbox with a reference number.
- A closed design-token system: Tailwind's defaults are reset so only the studio's own colours, type scale and spacing exist, with contrast checked by tests.
- Typed, schema-validated content files, so a malformed service or price entry fails the build instead of shipping.
- A guard script that fails the build if the hosting configuration gains anything that could create paid usage.
The result
- Live at www.thinkrecursive.in.
- Security headers, including a Content Security Policy, on every response.
- Unit, end-to-end and accessibility tests run on every push before anything is deployed.
- A documented rollback path to the previous version of the site.