Kova Sonoma.
Marketing and intake site for a luxury dog boarding, daycare and grooming retreat in Sonoma County, with a three-step new-client registration that emails the staff. The hard parts were a dog photo upload under a 1 MB server action limit and a page loader that runs before JavaScript.
- Year
- 2026
- Built for a client
- My part
- Sole developer
- Website
- kovasonoma.com
My role
I did this project on my own, end to end: the estimate, the architecture, the full release and the support after release.
Capabilities
Public site
- Home, about, gallery, lodging, daycare, grooming, contact, privacy and terms pages, plus a parked page behind a temporary redirect
- Branded page loader with an intro on the first visit and a cover and reveal on every navigation
- SEO with LocalBusiness JSON-LD, per-page metadata, a sitemap, robots rules and a generated Open Graph image
Registration and contact
- Three-step new-client registration in a dialog that opens from any button through a URL parameter
- Dog photo shrunk in the browser and normalised to WebP on the server, with a breed picker over 220+ breeds
- Server actions that validate again and email the staff through Resend, with the photo attached
- Contact form with an escaped HTML body and the sender as the reply address
Gallery
- Bento masonry of photos and video tiles, with a fullscreen lightbox that has looped arrows, keys and a download button
- Videos that play on click, with a WebM and MP4 fallback and native fullscreen on iPhone
Delivery
- Component library on Base UI, with 60+ component files and a UI kit showcase page
- Security headers, three cache tiers, build-time blur placeholders, and type checks in GitHub Actions on every push
- Railway hosting
Patterns and decisions
- The site has no database, no CMS and no login. Content lives in code and constants, and pages are static server components with client islands for the dialog, the gallery and the loader. The only backend is two server actions that send mail through Resend.
- One Zod schema serves the client and the server. The browser uses it to gate each form step, and the server action validates everything again and never trusts the client.
- Resend returns the result and the error as values and does not throw. The actions check both the thrown error and the returned one, so a bad key or an unverified sender cannot show "sent".
- Security headers (CSP, HSTS, frame and permissions policies) and cache rules live in the Next.js config. Env variables go through T3 Env.
- The blur placeholders for the images are generated at build time.
- I wrote a domain and email setup guide for the client, so the client could point the domain at Railway and verify Resend alone.
Cases
A photo that fits a 1 MB limit. The registration form takes a dog photo. A phone photo is 2 to 5 MB, but a server action body is capped at 1 MB. iOS Safari makes it worse: asked for WebP from a canvas, it silently returns PNG. I shrink the image in the browser in up to three passes, with smaller edges and lower quality each time, until it is under 900 KB. When the canvas returns PNG, the code falls back to JPEG. The server checks type and size, then runs sharp to rotate the image, fit it inside 2000 px and save it as WebP. I found the limit in use and fixed both sides in one change.
A registration wizard with no backend. The client wanted new-client registration, but keeps clients in a third-party service. I built a three-step dialog: policy, dog, contact. "Next" stays disabled until the fields of the current step pass the schema, and going back never blocks. The dialog opens from any button through a URL parameter handled by nuqs, so a link can open it directly. On submit the server action re-validates the form and emails the full data with the photo attached. Staff onboard the client by hand in a separate system.
Cache headers that actually matched. My first rule for immutable static assets never applied. Next.js applies every matching header entry and the last match wins. Files in the public folder are not content-hashed either, so an immutable rule there would strand visitors on old photos. I now use three ordered entries: must-revalidate by default, one hour with stale-while-revalidate for public images, and one year immutable for the build's hashed static files, kept last. A comment in the config records the order rule.