# MDX blog vs Sanity blog for Next.js

Both are content batteries. A repo takes one of them, not both.

| | MDX blog | Sanity blog |
| --- | --- | --- |
| What it is | A file-based blog: posts are MDX files in `content/blog`, compiled at build time by @next/mdx. Ships validated frontmatter, a prerendered index and post pages, a per-post OG image, an RSS 2.0 feed and sitemap entries. | A hosted, structured blog on Sanity. The Studio mounts inside this app at /studio, and every GROQ query lives in one typed file. Draft previews use Next.js draft mode. Webhook revalidation puts a publish live in seconds, with no deploy. |
| Pricing | Free. No vendor, no seats, no API quota. The only cost is build time. | Free plan: up to 20 seats, 2 public datasets and 10k documents. Growth is $15 per seat per month: up to 50 seats, private datasets and 25k documents. Past its included quotas, Growth bills pay-as-you-go. Enterprise is custom. |
| Best for | Engineering blogs, changelogs, docs-adjacent writing and any site where the writers already have commit access. Best when posts should go through review with the code they describe. Also when a post needs to import a real component from the app. | Teams where the people writing are not the people deploying: marketing, content and design working next to engineering. Best when content is structured (authors, categories, references between documents), not a pile of long markdown files. Also when you need previews, roles and a real-time editor without building one. |

- [Build with MDX blog](https://agenticboilerplate.com/build?b=blog-mdx)
- [Build with Sanity blog](https://agenticboilerplate.com/build?b=blog-sanity)

---

Agentic Boilerplate: A Next.js repo your agent already knows. Free during launch, then $99 once.

- Site map for agents: https://agenticboilerplate.com/llms.txt
- Public API: https://agenticboilerplate.com/openapi.json
- Contact: agenticstudio@gmail.com
