Quick answer
A traditional CMS usually owns both content editing and page presentation. A headless CMS exposes content separately from the frontend that renders it. Choose headless when multiple channels or substantial custom presentation justify that separation. Choose an integrated CMS when editors primarily need to publish one website and the platform’s templates meet its requirements. The API boundary adds responsibilities; it does not make editorial work disappear.
These categories overlap: an integrated CMS can expose APIs, and a headless service can provide a visual editor. Evaluate the actual workflow rather than the vendor label. This comparison concerns content and presentation ownership. It does not determine whether a page should use static generation or request-time rendering; either CMS style can participate in several rendering architectures.
Practical implementation steps
1. Follow one article through publication
Have an editor create a representative entry containing a title, image, internal link, and translated text. Observe preview, approval, publication, correction, and unpublishing. Count handoffs between systems, including developer intervention. A polished content form can conceal that preview uses the wrong frontend deployment or that publishing a translation exposes incomplete English fallback. Specify the intended outcome before selecting an API or frontend library.
2. Separate structured meaning from page layout
Model reusable facts such as service name, price label, location, and contact details separately from a page-specific layout. Headless becomes useful when the same facts must appear on a website and another channel. If every field is an arbitrary visual block designed for one page, the content may remain coupled to that frontend despite being served through an API. Document which fields belong to the domain and which belong to presentation.
3. Protect preview as a separate read mode
Public delivery must read published content; editor preview may read drafts through an authenticated server path. Keep draft credentials out of browser bundles and shared caches. Next.js Draft Mode changes how a route can serve preview content, but it does not authenticate an editor or choose a CMS endpoint automatically. Verify the preview entrypoint, permitted content path, and exit behavior as part of the integration.
4. Plan corrections and deletion
A publish webhook may trigger a rebuild, tag invalidation, or targeted regeneration. Authenticate the webhook and make duplicate delivery safe. Define how an unpublished entry disappears from pages, listings, feeds, search, and language alternates. Content stored in the CMS can be correct while every visitor still receives an old cached page. Monitor this gap with a real publication timestamp or version identifier visible to the integration.
Implementation example
A small runtime parser keeps the frontend independent of incidental CMS response fields. This fictional delivery contract accepts only published entries and intentionally returns a public projection. A real adapter must additionally validate rich text, media URLs, and locale rules. Keeping that work in one adapter makes a future provider migration more precise than importing provider response types throughout page components.
type PublicEntry = { slug: string; title: string };
export function parsePublishedEntry(value: unknown): PublicEntry {
if (typeof value !== "object" || value === null) {
throw new Error("Invalid CMS response");
}
const entry = value as Record<string, unknown>;
if (entry.state !== "published" ||
typeof entry.slug !== "string" ||
!/^[a-z0-9-]+$/.test(entry.slug) ||
typeof entry.title !== "string" ||
!entry.title.trim()) {
throw new Error("Entry is not valid public content");
}
return { slug: entry.slug, title: entry.title };
}
Tradeoffs and alternatives
Integrated publishing reduces the number of systems coordinating preview and publication, but can constrain presentation and channel reuse. Headless gives frontend independence while adding API availability, deployment, cache policy, and preview support. Repository content is a third option for developer-operated sites. This portfolio uses English Markdown plus Ukrainian overlays and validates source hashes; that is a repository fact, not proof of a universal CMS recommendation.
Common mistakes
An API does not guarantee portable content: vendor-specific rich text and visual blocks can still require substantial conversion. A headless frontend does not automatically inherit the CMS’s redirects or SEO metadata. Preview tokens must not become public query parameters that leak through referrers or logs. Finally, enabling draft access without checking the destination can create an unsafe redirect or expose a path that the editor is not entitled to preview.
Production checklist
- Editors can complete a full publication and correction workflow.
- Public and draft credentials, reads, and caches are separated.
- Publication events authenticate and tolerate duplicates.
- Unpublishing removes listings, feeds, and stale pages.
- Structured fields have a documented export and migration format.
- Frontend and CMS failures have named operational owners.
FAQ
Is headless always faster?
No. Performance depends on rendering, caching, media, browser dependencies, and API latency. A headless architecture can cache public content effectively, but an uncached chain of CMS requests can also slow a page. Compare production output under the same content and media conditions.
Does headless make a later redesign easier?
It can when content represents reusable meaning and frontend code owns layout. If the CMS stores the old design as deeply nested visual blocks, the next design still needs migration. Test reuse of one representative entry before claiming independence.
Next step
Choose the architecture after an editor successfully previews, publishes, corrects, and unpublishes one representative entry. If separation supplies a needed second channel or custom interaction, budget for the additional coordination. If it does not, keep editing and delivery together until a concrete requirement changes the decision.
Primary sources
Related guides and examples
Need this implemented in a real product?
One connected implementation across the interface, application logic, APIs, and data layer.