Fix dashboard rendering

This commit is contained in:
jude
2025-11-05 18:52:36 +00:00
parent 901cf575c4
commit a4ec39e4a2
6 changed files with 55 additions and 11 deletions

View File

@@ -10,4 +10,17 @@ fn main() {
.current_dir(Path::new("reminder-dashboard"))
.spawn()
.expect("Failed to build NPM");
Command::new("cp")
.arg("reminder-dashboard/dist/index.html")
.arg("static/index.html")
.spawn()
.expect("Failed to copy index.html");
Command::new("cp")
.arg("-r")
.arg("reminder-dashboard/dist/static/assets")
.arg("static/")
.spawn()
.expect("Failed to copy assets");
}