CLI args to stop showing "You must replace the baseURL in hugo.toml file when deploying, you can manage this announcement from the params.toml file."

hugo server --baseURL=$(HUGO_RUN_BASE_URL)

BUT I need a cli param to tell the GUI to scope showing this in the Web GUI:

" You must replace the baseURL in hugo.toml file when deploying, you can manage this announcement from the params.toml file.
"

A config setting is not enough for automation.

I cant see this as a flag on the CLI, and really need it. For large scale ops, the config is not scalable in terms of dev and ops effort. When the final base url is set thats also when you want to also tell the server to stop showing the nag message at the top too.

Config is for devs. Args / Env is for Ops.

All I see that is kind of related is:


--disableBrowserError      do not show build errors in the browser
--disableFastRender        enables full re-renders on changes
--disableKinds strings     disable different kind of pages (home, RSS etc.)
--disableLiveReload        watch without enabling live browser reload on rebuild

I’ve never seen such a message when using the above command. With or without baseURL. Neither such a message is contained in Hugo sources. So I doubt that one comes from Hugo directly.

My estimated guess: You use a “Theme” or a some scripts that generate that message.

Could you please give more details about your Hugo config and site setup and how to reproduce.

https://github.com/zeon-studio/hugoplate/issues/149#issuecomment-2373118532

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.