Contentful minimal playground

Proxied requests use the tenant's configured Contentful space ID (stored in the edge proxy config). The access token is injected server-side by the proxy — no token needed on the client.

Example 1: Direct fetch (space: forner-space)

URL that is actually fetched

GEThttps://forner.cmsassets.com/~api/spaces/forner-space/entries?limit=10
proxied tounknown (tenant not loaded)

Fetch result

// Click Fetch Contentful JSON

Integration snippet

import { createCmsAssetsFetch } from "@synchronized-studio/cmsassets-core"

const cmsFetch = createCmsAssetsFetch({
  tenant: "forner",
  provider: "contentful",
  providerConfig: { spaceId: "forner-space" }
})

const data = await cmsFetch(
  "https://cdn.contentful.com/spaces/forner-space/entries?limit=10"
).then(r => r.json())