Skip to content

Commit

Permalink
Merge pull request #1169 from jcbhmr/patch-1
Browse files Browse the repository at this point in the history
use / as base url instead of host addr in serve cmd
  • Loading branch information
epage authored Feb 28, 2024
2 parents bd21d39 + a114ebe commit ee62e2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/cobalt/serve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ impl ServeArgs {
let server = server.build();

let mut config = self.config.load_config()?;
debug!("Overriding config `site.base_url` with `{}`", server.addr());
config.site.base_url = Some(format!("http://{}", server.addr()).into());
debug!("Overriding config `site.base_url` with `/`");
config.site.base_url = Some("/".into());
let mut config = cobalt::cobalt_model::Config::from_config(config)?;
debug!(
"Overriding config `destination` with `{}`",
Expand Down

0 comments on commit ee62e2e

Please sign in to comment.