diff --git a/delivery-service/src/main.rs b/delivery-service/src/main.rs index 607c2cb..a6a7a9d 100644 --- a/delivery-service/src/main.rs +++ b/delivery-service/src/main.rs @@ -29,6 +29,10 @@ struct AppState { /// proxy delivery service requests for a better development experience. fn serve_client() -> ServeDir> { ServeDir::new("./app") + .precompressed_br() + .precompressed_deflate() + .precompressed_gzip() + .precompressed_zstd() // If the route is a client side navigation route, this will serve the app and let the app router take over the // path handling after the app is loaded .not_found_service(ServeFile::new("./app/index.html"))