|
@@ -447,7 +447,9 @@ pub async fn startup_default(ip: String, port: u16, config: CrateConfig) -> Resu
|
|
|
.service(ServeDir::new(config.crate_dir.join(&dist_path)));
|
|
|
|
|
|
let mut router = Router::new().route("/_dioxus/ws", get(ws_handler));
|
|
|
-
|
|
|
+ for proxy_config in config.dioxus_config.web.proxy.unwrap_or_default() {
|
|
|
+ router = proxy::add_proxy(router, &proxy_config)?;
|
|
|
+ }
|
|
|
router = router
|
|
|
.fallback(
|
|
|
get_service(file_service).handle_error(|error: std::io::Error| async move {
|