Fix flake

This commit is contained in:
Greg Shuflin 2025-02-17 04:29:30 -08:00
parent 781e0fba25
commit f64752b5df
3 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,8 @@
postInstall = ''
mkdir -p $out
cp -r static/dist $out/static
mkdir -p $out/static
cp -r static/dist $out/static/
cp -r templates $out
'';

View File

@ -21,7 +21,7 @@ pub fn get_asset_path(name: &str) -> String {
manifest
.get(name)
.cloned()
.unwrap_or_else(|| format!("/static/{}", name))
.unwrap_or_else(|| format!("/assets/{}", name))
} else {
let manifest_path = "static/dist/manifest.json";
let manifest = if let Ok(content) = fs::read_to_string(manifest_path) {

View File

@ -181,7 +181,6 @@ fn rocket() -> _ {
import::get_job_status,
],
)
.mount("/static", FileServer::from("static"))
.mount("/assets", FileServer::from("static/dist"))
.attach(Template::custom(|engines| {
engines