pedro@portfolio ~ % open ./projects/starter
Sanity × Next.js × Cloudflare Starter
An open-source starter for content-first sites on the edge.
~ % cat README.md
Overview
A production-ready template that distils what I learned building client sites: Sanity for content, Next.js 16 for rendering and Cloudflare Workers (via OpenNext) for hosting. Clone it with degit, fill in two env files and pnpm dev starts the site and the Studio side by side.
It ships a working demo — landing page, posts and an about page — plus sample data to import, and a “Deploy to Cloudflare Workers” button. An i18n edition builds on it with three locales.
~ % ls ./features
What it does
Visual editing
Sanity Presentation with the Tinloof Pages navigator, draft mode and the real-time Live Content API.
Page builder
Pages composed of call-to-action and info sections that editors reorder by drag and drop and edit in context.
Pathname routing
Pages and posts store their own pathname, giving clean URLs and a catch-all route on the frontend.
Edge deployment
One command builds and deploys the frontend to Cloudflare Workers with OpenNext; another deploys the Studio to Sanity.
AI alt text & media
Image descriptions generated with Sanity AI Assist, plus an Unsplash asset source.
Monorepo
pnpm workspaces with separate frontend and studio packages and Sanity TypeGen types.
~ % cat CHANGELOG.md
Highlights
- ▸Static generation with incremental revalidation, so most requests are served from cache at the edge.
- ▸Documented environment variables for local, Studio and Cloudflare (Wrangler secrets) setups.
- ▸Sitemap generated from Sanity content.
~ % ls ./screenshots
Gallery
next › ./projects/starter-i18n
Sanity × Next.js × Cloudflare i18n Starter