All Demos

Imgix Demo

Asset Proxy

Asset proxy demo — route Imgix-processed images through your tenant edge domain while preserving all rendering parameters.

Integration

Setup with createCmsAssetsFetch

Drop this fetch adapter into your Imgix client. All matching CMS requests are transparently routed through the API proxy.

Imgix + cmsassets-core
import { createGenericProvider, createCmsAssetsFetch } from '@synchronized-studio/cmsassets-core'

const imgix = createGenericProvider({
  id: 'imgix',
  apiHosts: [],
  assetHosts: ['my-source.imgix.net'],
})

const cmsFetch = createCmsAssetsFetch({
  tenant: 'demo-imgix',
  provider: imgix,
})

// Imgix rendering parameters (?w=, ?auto=, etc.) pass through untouched.
const response = await cmsFetch(
  'https://my-source.imgix.net/photos/hero.jpg?w=1200&auto=format'
)

URL Rewriting

What happens under the hood

The SDK intercepts CMS requests and rewrites the URL to your tenant proxy domain. The edge worker then fetches the upstream API, injects credentials, caches the response, and rewrites asset URLs before returning.

Live

Run the proxy call

Hit the button to send a real request through the Orinami edge proxy. The response shows the JSON with rewritten asset URLs highlighted.