Skip to content

Commit a5bc0a1

Browse files
committed
fix(serve): use localhost for converting local assets URL instead of norgolith.toml's rootUrl
1 parent 77b2671 commit a5bc0a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/serve.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ pub async fn serve(port: u16, drafts: bool, open: bool) -> Result<()> {
505505

506506
if rebuild_needed {
507507
let state = Arc::clone(&state_watcher);
508-
let root_url = state.config.root_url.clone();
508+
let root_url = format!("http://localhost:{}", port);
509509
let content_schema = state.config.content_schema.clone();
510510
tokio::task::spawn(async move {
511511
match shared::convert_document(

0 commit comments

Comments
 (0)