IP address as baseurl?

I can agree that it can be confusing, but not once you know how it works.

And once you know how it works, you kind of appreciate it.

  • config.toml is my production settings
  • I’m not that keen on duplicate that just to override the baseUrl
  • hugo server (with or without watch) defaults to localhost. This is what most people use in development and is stated in the log on startup.
  • hugo server --baseUrl=http://0.0.0.0:1234 covers the rest of the use cases

If we remove the logic in bullet 3 above, you will get what you want, but we will get a truck load of even more confused users who doesn’t use a virtual Ubuntu server with no localhost …

So this boils down to the choice with less confusion, I guess.