Browse Source

fix: disable base_path changes for serve

Timo Kösters 2 năm trước cách đây
mục cha
commit
808da6e07f
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      src/cli/serve/mod.rs

+ 3 - 0
src/cli/serve/mod.rs

@@ -36,6 +36,9 @@ impl Serve {
             crate_config.set_features(self.serve.features.unwrap());
         }
 
+        // Subdirectories don't work with the server
+        crate_config.dioxus_config.web.app.base_path = None;
+
         let platform = self.serve.platform.unwrap_or_else(|| {
             crate_config
                 .dioxus_config