This commit is contained in:
Zef Hemel
2026-06-23 09:19:30 +02:00
parent 55f53fc9a6
commit eb2c76400a
6 changed files with 22 additions and 13 deletions
+1 -2
View File
@@ -90,8 +90,7 @@ impl Config {
disable_service_worker: env_nonempty("SB_DISABLE_SERVICE_WORKER").is_some(),
log_push: env_nonempty("SB_LOG_PUSH").is_some(),
additional_head_html: env::var("SB_HEAD_HTML").unwrap_or_default(),
theme_color: env_nonempty("SB_THEME_COLOR")
.unwrap_or_else(|| "#e1e1e1".to_string()),
theme_color: env_nonempty("SB_THEME_COLOR").unwrap_or_else(|| "#e1e1e1".to_string()),
space_description: env_nonempty("SB_DESCRIPTION")
.unwrap_or_else(|| "Powerful and programmable note taking app".to_string()),
host_url_prefix: normalize_prefix(&env::var("SB_URL_PREFIX").unwrap_or_default()),
+3 -1
View File
@@ -123,7 +123,9 @@ fn build_runtime(
let logs = silverbullet_server::runtime::LogBuffer::new();
match silverbullet_server_runtime_chrome::ChromeTransport::launch(chrome_cfg, logs.clone()) {
Ok(transport) => {
tracing::info!("headless Chrome runtime configured (launches on first runtime request)");
tracing::info!(
"headless Chrome runtime configured (launches on first runtime request)"
);
Some(Box::new(silverbullet_server::runtime::ClientRuntime::new(
transport, logs,
)))