Proxied requests use the tenant's configured CMS origin (stored in the edge proxy config). Repository is automatically taken from the configured tenant value.

Example 1: Direct fetch tba-boulder

URLs that are actually fetched

GEThttps://tda.cmsassets.com/~api/api/v2
proxied tounknown (tenant not loaded)
GEThttps://tda.cmsassets.com/~api/api/v2/documents/search?pageSize=20&ref=<master-ref>
proxied tounknown

Fetch result

// Click Fetch Prismic JSON

Integration snippet

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

const cmsFetch = createCmsAssetsFetch({
  tenant: "tda",
  provider: "prismic"
})

const data = await cmsFetch("https://tba-boulder.cdn.prismic.io/api/v2").then(r => r.json())