maybe static file fix?
confusedbread confuseddbread@gmail.com
Thu, 10 Jul 2025 19:48:58 +0200
1 files changed,
7 insertions(+),
4 deletions(-)
jump to
M
src/main.rs
→
src/main.rs
@@ -13,9 +13,13 @@ }
#[cfg(debug_assertions)] const URL: &str = "http://localhost:5050/api"; +#[cfg(debug_assertions)] +const PATH: &str = "./static/"; #[cfg(not(debug_assertions))] const URL: &str = "https://kate.breadlabs.de/api"; +#[cfg(not(debug_assertions))] +const PATH: &str = "/www/breadsite/static/"; fn head(page_title: &str) -> Markup { html! {@@ -68,7 +72,6 @@ )
} // TODOO: pawer 81x31 -// TODOO: pawer links fn pawer() -> Markup { html! { pawer {@@ -82,8 +85,8 @@ }
} // TODOOOO: about me -// TODO: idea: heart rate monitor -// TODO: idea: svg -> neocat generator +// TODO: heart rate monitor +// TODO: svg -> neocat generator (get random svg from wikipedia for random neocar?) fn breadsite() -> Markup { html! { h1 { "Hiiii" }@@ -148,7 +151,7 @@ HttpServer::new(|| App::new()
.service(breadsite_index) .service(breadsite_boop) .service(breadsite_waf) - .service(Files::new("/static", "./static")) + .service(Files::new("/static", PATH)) ) .bind(("localhost", 8083))? .run()