Contentful 迁移至 Sanity
在达到产品与市场契合前,Contentful 账单已经翻三倍
Why leave Contentful?
- Paying $489/month jumps to undisclosed enterprise rates with no warning
- Editing the admin UI requires enterprise tier or custom React workarounds
- Fetching a post with related content burns three separate API calls
- Adding a staging environment or temporary user doubles your monthly bill
- Parsing Contentful's rich text AST requires custom renderers for every frontend
- Real-time collaboration locks behind higher pricing tiers your team can't justify
What you gain
- Your first three editors and 500K monthly API requests cost nothing
- GROQ queries return posts, authors, and images in one call with your exact field structure
- Sanity Studio ships as a React app you rebuild to match your editorial workflow
- Your content team edits the same document simultaneously on the free tier
- Portable Text serializes to HTML, React, or Vue without AST archaeology
- Your CMS bill scales with actual usage, not arbitrary seat and environment taxes
Contentful 定价问题
Contentful 的定价模式按空间、环境和用户数收费。随着内容运营规模扩大,成本以非线性方式增长。从 Contentful 免费层开始的团队会发现自己在 $489/月的计划上——然后才发现下一个等级是企业定价,没有公开价格。
为什么团队转向 Sanity
Sanity 的免费层比 Contentful 宽松得多。但定价不是团队转换的唯一原因。GROQ(Sanity 的查询语言)比 Contentful 的 Content Delivery API 更强大灵活。实时协作编辑已内置。Sanity Studio 是一个完全可定制的 React 应用——而不是一个功能固定、扩展点有限的管理界面。
迁移流程
Contentful 内容可通过其 Management API 干净地导出。我编写迁移脚本,将 Contentful 内容类型转换为 Sanity 模式,并迁移所有条目、资产和关系。前端更新为查询 Sanity 而不是 Contentful——通常由于 GROQ 的功能,查询会大幅简化。
The migration process
Discovery & Audit
We map every page, post, media file, redirect, and plugin. Nothing gets missed.
Architecture Plan
New stack designed for your content structure, SEO requirements, and performance targets.
Staged Migration
Content migrated in batches. Each batch verified before the next begins.
SEO Preservation
301 redirects, canonical tags, sitemap, robots.txt — every ranking signal carried over.
Launch & Monitor
DNS cutover with zero downtime. 30-day monitoring period included.
Contentful vs Sanity
| Metric | Contentful | Sanity |
|---|---|---|
| Free tier | Limited entries + types | Generous (500K API calls) |
| Query language | REST API (multiple calls) | GROQ (single query) |
| Admin customisation | Limited extensions | Full React app (Sanity Studio) |
| Collaborative editing | Paid tier only | Built in (all plans) |
| Rich text format | Complex AST | Portable Text (cleaner) |
| Pricing model | Non-linear scaling | Predictable, linear |
Common questions
为什么团队正在离开 Contentful?
三个原因:非线性扩展的定价(免费层到 $489/月,再到企业级的大幅跳跃)、功能固定的管理界面且定制选项有限,以及查询 API 需要多次调用才能获取相关内容。Sanity 解决了所有这些问题。
从 Contentful 迁移至 Sanity 有多复杂?
Contentful 拥有出色的导出工具(Management API)。内容类型可干净地映射到 Sanity 模式。条目和资产通过自定义脚本迁移,保留所有关系。典型迁移需要 3-5 周,包括前端查询更新。
我的编辑人员需要重新培训吗?
Sanity Studio 的界面与 Contentful 不同,但大多数编辑会在几天内适应。编辑体验更直观——尤其是对于带嵌套组件的结构化内容。我提供文档和演练会议。
GROQ 与 Contentful 的 API 相比如何?
GROQ 在单次查询中获取你需要的确切数据——包括嵌套引用和计算字段。Contentful 的 API 通常需要多次调用和客户端数据组装。使用 GROQ 时,前端代码变得更简单更快速。
Contentful Webhook 和集成怎么办?
Sanity 支持所有内容事件的 Webhook。现有集成(Vercel 重建触发器、Slack 通知等)重新配置为使用 Sanity Webhook。功能保留,工作量最少。
Sanity 的免费层真的比 Contentful 更好吗?
Sanity 的免费层包括 3 个非管理员用户、50 万 API 请求/月和 20GB 带宽。Contentful 的免费层限制为总共 5 个用户、100 万 API 调用,但内容类型和条目限制严格。对于大多数中小型团队,Sanity 的免费层更易使用。
Ready to migrate?
Free assessment. We'll audit your current site and give you a clear migration plan — no commitment.
Let's build
something together.
Whether it's a migration, a new build, or an SEO challenge — the Social Animal team would love to hear from you.