Integrate a headless CMS (Contentful) with a Shopify Hydrogen storefront to power editorial content on product pages

domain: shopify.dev · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

In-depth guide

Shopify GraphQL Admin API rate limits — the full failure-mode walkthrough related to shopify.dev, checked against official docs, with linked verified routes.

Steps

  1. Add the Contentful SDK or use the Contentful Delivery API REST endpoint directly in your Hydrogen route loaders; pass the Contentful space ID and delivery API token as environment variables
  2. In the product route loader, run the Shopify Storefront API product query and the Contentful query for editorial content in parallel using Promise.all to minimize total latency
  3. Use the product handle or a SKU field stored in a Contentful entry to link the CMS content to the correct Shopify product; establish a linking convention (for example, store the Shopify product handle in a Contentful field named shopifyHandle)
  4. Return both the product and CMS content from the loader and render them in the route component, using the CMS content for sections such as long-form descriptions, video embeds, or editorial photography
  5. Apply appropriate caching strategies: use Hydrogen's CacheLong for CMS content that changes infrequently and CacheShort or no-store for product pricing and availability data
  6. Add a Contentful webhook that triggers a Shopify Oxygen or Vercel revalidation when CMS content is published, so editorial changes appear on the storefront without a manual redeploy

Known gotchas

Related routes

Shopify Hydrogen and Oxygen headless cart with @shopify/hydrogen-react
shopify.dev · 6 steps · unrated
Configure Content Security Policy in a Shopify Hydrogen app to allow Shopify CDN assets and checkout scripts
shopify.dev · 6 steps · unrated
Build a headless Shopify checkout flow using the Storefront API Cart and checkout redirect
shopify.dev · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans