I currently use Netlify to deploy my website. I have a staging and a master branch. The master branch gets published automatically and I like to preview the staging branch (and any other spike branches that I have). If I set the baseURL to my domain and use absURL whenever I refer to a file (eg. img/featured_image.png) it uses the baseURL instead of the preview url.
One way to solve this would be to use relURL instead of absURL but there seem to be various reasons why it is better to have an absURL.
Another way would be to set the baseURL to “/” but then I can’t share my content properly on social media because the URL is not found.