Replies: 2 comments 1 reply
-
|
One down side is it incurs a serverless function hit for every media item that you serve. On hosts like netflify and vercel, you have a quota for both cached and uncached hits. While the cost for cached hits is low, it might add up over time. |
Beta Was this translation helpful? Give feedback.
-
|
I would also argue that the best approach is to serve medias through experience edge and if a custom domain is preferred then add it to experience edge. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I notice that the proxy of media item requests has been disabled / removed here, I would just like to know the recommendation now regarding this one - https://doc.sitecore.com/xmc/en/developers/jss/22/jss-xmc/troubleshooting-jss-next-js-apps.html#sitecore-images-dont-load-on-localhost
So setting the IncludeServerUrlInMediaUrls to false will no longer work on dev or in prod.
In particular, I'm interested to know the rationale of why this is a bad idea in prod, as the benefit of it is that all media links get the custom domain automatically without needing to bind a custom domain to Experience Edge.
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions