What it is
ReMHRK is a two-person studio that rebuilds websites for local service businesses like contractors, home buyers, property managers and logistics companies. This is our own marketing site. We wanted to be able to change every headline, case study, stat and FAQ answer without deploying, so the whole site runs on Sanity.
Content model
Site Settings, Home Page, Work Page and FAQ Page are single documents, each locked to a fixed ID with a custom Structure Tool layout, so editors never get a confusing list of "Home Page" copies. The Home Page document is split into tabs (Hero, Services, Video, Work, Stats band, Process, Pricing, Booking) with @sanity/icons, which keeps a long document easy to move around. Case Studies and SDLC Stages are regular collections sorted by an order field. The homepage refers to them by reference, so one case study can appear in the homepage work slider and on its own /work/[slug] page.
A Case Study holds the client name, category, live URL, build timeline, results (value and label pairs like "+20% / revenue in the first 3 months"), a testimonial, the challenge and solution text, deliverables, paired desktop and mobile screens, before/after images, a hero clip, and a showcase array of carousel slides. Each slide holds a desktop image, a mobile image and optional scroll-through videos.
Challenge: keeping case-study media current
Taking screenshots of client sites by hand at two viewport sizes, and recording scroll-through videos, didn't scale. So we wrote a two-step pipeline:
- Capture (
npm run screenshots:capture): Playwright visits each page listed in a config file, dismisses cookie banners, turns off animations with injected CSS so the captures are stable, and saves desktop and mobile PNGs. For pages marked for video, it also records a looping scroll-through clip, built frame by frame and encoded to H.264 with ffmpeg. Nothing is written to Sanity at this point, so we can review everything first. - Upload (
npm run screenshots:upload): the reviewed files go to Sanity through client.assets.upload, and one carousel slide per page is added to each case study's showcase array. Each asset is uploaded only once and reused when other case studies need it. A slide is skipped if one with the same caption already exists, so the step is safe to run again.
Challenge: video from Sanity
The homepage video section and the case-study clips are Sanity file assets played in a native <video> element straight from cdn.sanity.io. That required setting CORS origins for local, production and preview domains, and serving the clips as short, muted, looping H.264 files with poster images so the page still loads fast.
Challenge: Studio edits going live
Pages are statically rendered and revalidate every 5 minutes, so edits made in the Studio show up on the live site without a redeploy and pages still load fast. Every query also has typed fallback content, so the site still renders if the dataset is empty or a field is missing.
Seeding without wiping edits
A seed script fills a fresh dataset. It also has --case-studies mode, which merges only the case-study text instead of replacing documents, --safe mode, which writes only fields that can't overwrite Studio edits, and --dry-run, which shows a diff of seed values against live content.
What we learned
- Single documents with fixed IDs and tabbed sections make the Studio feel like it was built for this site, not like a generic CMS.
- References between the homepage and the case studies remove duplicate content.
- Treating media as a reviewable, repeatable pipeline instead of manual uploads kept the case studies current as client sites changed.
- An embedded Studio at
/studio on the same Next.js app means one deploy and one codebase.