Compare commits

..

1 commit

Author SHA1 Message Date
a8f18680c8 chore: fix restert when updating frontend files 2025-02-26 05:13:12 -03:00
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
fn main() { fn main() {
// only enable in production build // only enable in production build
#[cfg(not(debug_assertions))] #[cfg(not(debug_assertions))]
minijinja_embed::embed_templates!("dist"); minijinja_embed::embed_templates!("templates");
} }

View file

@ -29,7 +29,7 @@ fn load_templates() -> Result<Environment<'static>> {
// only enable in production build // only enable in production build
#[cfg(not(debug_assertions))] #[cfg(not(debug_assertions))]
minijinja_embed::load_templates!(&mut tmpl_env); minijinja_embed::load_templates!(&mut env);
let global_routes = vec![Link { let global_routes = vec![Link {
path: "/about".to_owned(), path: "/about".to_owned(),