I’m thinking about the best way to modify a file url on the fly to change it with the URL of my CDN and like to know your advice how to achieve this.
My long term goal is to populate an ImageCDNUrl at the same time I upload an image and modify my client code to get this ImageCDNUrl field in place of getting the original file with file.url().
But for many reason, the first being I don’t want to touch my client side for the moment, I’d like to modify the url of the file when the client get it simply by making a replace of the file object URL field.
Is making it in cloud function Aterfind a good option ? Let me know your thoughts !