Setting up global routing for image paths in Vue 2
In my Vue/Laravel project I am currently using relative routes. However, I am currently in the process of switching to DO spaces for my image hosting. I am going to go through my whole project and switch to absolute routes for all of my images. However, before I do all that work it would be great if the image url could be a variable I could change in one location (for local and production), similar to how laravel uses the .env file.
Would this be something I could add globally easily without having to pass it into components?
Thanks!