mirror of
https://github.com/cobalt-org/cobalt.rs
synced 2024-11-10 06:14:12 +00:00
fix: Cobalt serve work correctly with sitemap
This commit is contained in:
parent
d6c387d6f1
commit
3482590f58
1 changed files with 2 additions and 2 deletions
|
@ -47,14 +47,14 @@ impl ServeArgs {
|
|||
|
||||
let mut config = self.config.load_config()?;
|
||||
debug!("Overriding config `site.base_url` with `/`");
|
||||
config.site.base_url = Some("/".into());
|
||||
let host = format!("http://{}/", server.addr());
|
||||
config.site.base_url = Some(host.into());
|
||||
let mut config = cobalt_model::Config::from_config(config)?;
|
||||
debug!(
|
||||
"Overriding config `destination` with `{}`",
|
||||
dest.path().display()
|
||||
);
|
||||
config.destination = dest.path().to_owned();
|
||||
|
||||
build::build(config.clone())?;
|
||||
|
||||
if self.open {
|
||||
|
|
Loading…
Reference in a new issue