Localhost links being generated

When running hugo server it defaults to localhost:1313, ignoring the baseUrl in config.toml.

But you can start it with

hugo server --port=12345 --baseUrl=http://myhost.com/

And it should work.

2 Likes