fix(vtex): rewrite legacy decocache/decoassets video URLs to decoims.com - #1626
fix(vtex): rewrite legacy decocache/decoassets video URLs to decoims.com#1626aline-pereira wants to merge 1 commit into
Conversation
Product videos stored in the VTEX catalog may reference legacy CDN domains (assets.decocache.com or data.decoassets.com). Rewrite them at transform time so all VideoObject.contentUrl fields point to decoims.com. This fixes Azion proxy requests generated by PDP pages across all VTEX sites. Co-authored-by: Cursor <cursoragent@cursor.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughIn ChangesVideo URL normalization
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Tagging OptionsShould a new tag be published when this PR is merged?
|
Problem
VTEX product catalogs may have videos registered with
assets.decocache.comordata.decoassets.comURLs. These are passed through as-is intoProduct→finalVideos→contentUrl, generating Azion proxy requests on every PDP load.Fix
One-line regex replace at the point where the
urlis set infinalVideos:Impact
deco-cx/appsdecoims.comor other CDNsMade with Cursor
Summary by cubic
Rewrites VTEX product video URLs from
assets.decocache.comanddata.decoassets.comtodecoims.comintoProductsocontentUrluses the right CDN. Prevents Azion proxy requests on PDP loads and leaves existingdecoims.comor other CDN URLs unchanged.Written for commit 2721e33. Summary will update on new commits.
Summary by CodeRabbit