Merge cloudinary with shopify product images
Product gallery with CDN transforms
Shopify product media plus Cloudinary derived URLs in one feed. For "merge cloudinary with shopify product images", store CLOUDINARY_BASIC_AUTH, SHOPIFY_ACCESS_TOKEN in Secret Vault, call https://api.cloudinary.com/v1_1/{{secrets.CLOUDINARY_CLOUD_NAME}}/resources/image from a Worker, and let React hit only https://realcomposer.com/v1/workspace/merge-cloudinary-with-shopify-images with an rc_live_ client token.
Waterfall latency from multiple Cloudinary and Shopify requests
React widgets often await Cloudinary and Shopify sequentially, multiplying TLS handshakes on cellular networks and amplifying failure rates.
- Race conditions between parallel manual fetches
- Higher mobile data usage from redundant JSON
- Timeouts when any upstream exceeds cellular RTT
How RealComposer Solves This at the Edge
Store upstream credentials in Secret Vault
Store CLOUDINARY_BASIC_AUTH, SHOPIFY_ACCESS_TOKEN in the vault. React never embeds the raw secret, only a revocable rc_live_ client token.
Configure upstream steps and output mapping
Use GET against https://api.cloudinary.com/v1_1/{{secrets.CLOUDINARY_CLOUD_NAME}}/resources/image. Allowed origins on the client token should match leave cache ttl at 0 when each response is user-specific (include userid or record id in query params before enabling cache).
Call from React
Allowed origins on the token should list every React host that calls this URL.
const res = await fetch('https://realcomposer.com/v1/workspace/merge-cloudinary-with-shopify-images', {
headers: { Authorization: 'Bearer rc_live_your_token' }
});
const data = await res.json();
{
"requestId": "req_merge-cl",
"upstreamLatencyMs": 142,
"audit": {
"region": "edge",
"trace": "merge-cloudinary-with-shopify-images"
},
"payload": {
"id": "sample_id",
"status": "active",
"nested": {
"tags": [
"demo"
],
"internal": true
},
"unused_blob": {
"foo": "bar",
"bar": "baz"
}
}
}
{
"cloudinary_publicId": "sample",
"cloudinary_format": "sample",
"shopify_productId": "sample",
"shopify_title": "sample"
}
Recipe Specs
- HTTP method
- GET
- Upstream calls
- 2
- Edge cache TTL
- No caching
- Client auth
- Restricted client token
- Mapped output fields
- 4
- Payload
- 255 B to 115 B (-55%)
curl -X GET "https://realcomposer.com/v1/workspace/merge-cloudinary-with-shopify-images" \ -H "Authorization: Bearer rc_live_client_token"
Developer Questions & Troubleshooting
Which Cloudinary credential belongs in the vault for this pipeline?
Store CLOUDINARY_BASIC_AUTH, SHOPIFY_ACCESS_TOKEN for merge-cloudinary-with-shopify-images. React never sees decrypted values.
Does POST traffic get cached?
merge-cloudinary-with-shopify-images POST steps bypass caches.default even if cacheTtlSeconds is set in the dashboard.
What happens if an upstream step times out?
Allowed origins on the merge-cloudinary-with-shopify-images client token restrict which domains may call the edge URL.
Sources & Definitions Used in This Answer
Deploy this React + Cloudinary, Shopify Recipe
Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.