compress assets by default in the launch macro

This commit is contained in:
Evan Almloff committed 2023-06-30 19:22:43 -07:00
1 parent cbeaa07be0
commit 040055ba9d
3 files changed
+23 -9

No files matched your search

@@ -59,7 +59,7 @@ async fn get_server_data() -> Result<String, ServerFnError> {
fn main() {
launch!(@([127, 0, 0, 1], 8080), app, {
server_cfg: ServeConfigBuilder::new(app, (AppProps { count: 0 })),
serve_cfg: ServeConfigBuilder::new(app, (AppProps { count: 0 })),
incremental: IncrementalRendererConfig::default().invalidate_after(std::time::Duration::from_secs(120)),
});
}