Livereload doesn't work when baseURL contains subfolder

I’m deploying the dev version of my blog with the following command:

sudo hugo server -wD -d /mnt/m3/www/blog -s ~/Dropbox/blog/site --baseURL= --port=80 --appendPort=false'

Almost everything works as expected, but the livereload.js is being called from the root site:

(index):273 GET

Is there a way to get around this?


Use a baseURL without subfolder. But I guess that was not the answer you’re looking for :slight_smile:

A baseURL without subfolder works just fine in the production environment…

I’m assuming you do not use Live-reload in the production environment, so a baseURL should work just fine there as well.