Prompt
I'm building a docs site and an app from the same CMS, any recommendations?
Latest observation
Yes — if you’re powering both a docs site and an app from the same CMS, the main goal is to keep content modeling flexible while making delivery simple and fast for two very different surfaces.
What to optimize for
1) Separate content types by use case
Docs and app content usually have different needs:
- Docs: long-form articles, versioning, nested navigation, code blocks, callouts, search-friendly structure
- App: short UI copy, feature flags, onboarding content, help tooltips, modals, release notes
A good CMS setup usually has:
docPagedocSection/categoryappCopyfeatureGuideannouncementchangelog
This prevents your content model from becoming one giant “page” type with optional fields for everything.
2) Use a headless CMS
A headless CMS is usually the best fit because it lets you:
- reuse content across site and app
- deliver via API
- build separate frontends with different rendering requirements
Popular options:
- Sanity — very flexible, great for structured content and custom editorial workflows
- Contentful — strong enterprise tooling and integrations
- Strapi — good if you want self-hosted/open-source control
- Directus — good if you already have a SQL database
- Storyblok — nice visual editing, especially for marketing/docs hybrid sites
If you want maximum schema flexibility and developer control, Sanity is often a strong choice.
3) Design for reuse, not duplication
If the same content can appear in the docs site and the app, model it as reusable “blocks” or shared records:
- feature descriptions
- product names
- onboarding steps
- glossary terms
- release notes
Then reference those from both the docs and app content types instead of copying text.
4) Version your docs
Docs usually need versioning more than app content does. Consider:
- version field on document
- per-version navigation tree
- archived content
- publication status separate from draft status
If you expect product changes over time, this matters a lot.
5) Think about localization early
If your app and docs both need multiple languages, define locale support in the CMS from day one. Retrofitting localization later is painful.
6) Make editorial workflows match the team
If non-technical people will edit content:
- use previews
- define clear required fields
- add validation rules
- create templates for common content
- use structured blocks instead of freeform rich text where possible
7) Cache aggressively
Docs pages and app content are often read-heavy, so:
- use CDN caching
- static generation or ISR where possible
- pre-render the docs
- keep app content responses small and cacheable
A practical architecture
A common setup looks like this:
- CMS as the source of truth
- Docs frontend: Next.js / Astro / Gatsby / Nuxt
- App frontend: your product frontend, consuming the same CMS via API
- Search for docs: Algolia, Meilisearch, or Elasticsearch
- Webhooks from CMS to rebuild docs or refresh caches
My recommendation by scenario
If you want the simplest strong setup:
- Sanity + Next.js
- separate schemas for docs and app content
- static/ISR docs site
- API-driven app content
If you want open source/self-hosted:
- Strapi or Directus
- paired with Next.js/Nuxt
- good if you want more control over data and infra
If the team is mostly marketers/content editors:
- Contentful or Storyblok
- less engineering overhead for editorial workflow
Key warning
Avoid using the CMS as a dumping ground for everything. If the app has highly dynamic product data or user-specific data, that should usually stay in your app/backend, not the CMS.
Best practice in one sentence
Use the CMS for shared, editorially managed content; keep application state and transactional data in your app backend.
If you want, I can recommend a specific CMS stack based on:
- your frontend framework
- whether you need localization
- whether you want self-hosted or SaaS
- whether the docs are Markdown-based or fully structured