Not seeing image on https://mySite.com:myPort

I’m running a demo version during development on https://mySite.com:myPort (so customer may review ‘agile style’), But the images in /images/myImage.png (myPage.md) are not shown when deploying. baseURL=mySite.com:myPort does not seem to work.

Browser sees files correctly when entering https://mySite:myPort/images/myImage.png

What is the correct way to tell hugo the port number for deploy, please? (Eventually In production the port number will be dropped for 80/443, of course)

Does it work if you set baseURL="/"?

I just tested to generate my site with hugo --baseUrl=http://example.org:8080 and it works as expected. All absolute URL:s becomes http://example.org:8080/some/path.

Setting baseURL: "http://example.org:8080/" also worked.

that was it, thanks

Also, you can specify the port as an option:

hugo server --port 1313

For more options see https://gohugo.io/commands/hugo_server/