Trouble with Programmatically Updating Media URLS in API to Cloudfront domain URL

That’s a middleware