- set index on 404 to true (highly desired for SPA)

- add support for web.base_path in dioxus.toml to allow multi level routes
This commit is contained in:
Ben Birch committed 2022-04-07 15:22:46 +10:00
1 parent e84851bdfb
commit 280480de6b
3 files changed
+36 -25

No files matched your search

+3 -1
View File
@@ -39,11 +39,12 @@ impl Default for DioxusConfig {
web: WebConfig {
app: WebAppConfing {
title: Some("dioxus | ⛺".into()),
base_path: None,
},
watcher: WebWatcherConfing {
watch_path: Some(vec![PathBuf::from("src")]),
reload_html: Some(false),
index_on_404: Some(false),
index_on_404: Some(true),
},
resource: WebResourceConfing {
dev: WebDevResourceConfing {
@@ -77,6 +78,7 @@ pub struct WebConfig {
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct WebAppConfing {
pub title: Option<String>,
pub base_path: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]