Service index.html on 404 (for SPA)

This commit is contained in:
Joshua Kifer committed 2022-03-26 18:33:18 -06:00
1 parent 962ab2726a
commit 70fdfabd18
3 files changed
+57 -18

No files matched your search

+2
View File
@@ -42,6 +42,7 @@ impl Default for DioxusConfig {
watcher: WebWatcherConfing {
watch_path: Some(vec![PathBuf::from("src")]),
reload_html: Some(false),
index_on_404: Some(false),
},
resource: WebResourceConfing {
dev: WebDevResourceConfing {
@@ -80,6 +81,7 @@ pub struct WebAppConfing {
pub struct WebWatcherConfing {
pub watch_path: Option<Vec<PathBuf>>,
pub reload_html: Option<bool>,
pub index_on_404: Option<bool>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]