fix: Set 404 HTTP status on the not found page
This commit is contained in:
parent
3f4475c3da
commit
1d5f1f0592
|
@ -138,7 +138,7 @@ async fn serve(
|
|||
"/",
|
||||
ServeDir::new(build_dir.clone())
|
||||
// The fallback route for 404 errors:
|
||||
.fallback(ServeFile::new(build_dir.join(file_404))),
|
||||
.not_found_service(ServeFile::new(build_dir.join(file_404))),
|
||||
)
|
||||
.with_state(reload_tx);
|
||||
|
||||
|
|
Loading…
Reference in New Issue